• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » file
Trace: • 2024.01.10 シェル再読み込み • 2023.06.11 ビンボー魂 おばあちゃんが遺してくれた生き抜く力 • 2015.09.24 Dokuwikiアップグレード(Detritus) • 2023.08.03 Unixbenchでエラー • 2020.02.20 MySQL Workbench 8.0 ではMySQL5.1に接続できない • 2024.02.21 WireguardクライアントをGatewayにする • 2016.06.15 百円の恋 • 2021.12.30 Docker Dokuwiki bitnami • 2023.05.12 Bitwarden自動入力 • Jun 16, 2023 Bitwarden Shortcuts

file

Search

You can find the results of your search below.

Contains
  • Exact match
  • Starts with
  • Ends with
  • Contains
@bash
  • Any namespace
  • bash:script (4)
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Matching pagenames:

  • 01 ファイルの指定行を抜き出す
  • 02 リモートファイルチェック

Fulltext results:

01 Bash - 制御文
35 Hits, Last modified: 5 years ago
. </code> ===== 条件 ===== ^ ファイル形式のチェック ^^ |-b File|指定したFileがブロックデバイスファイルなら真である。 | |-c File|指定したFileがキャラクタデバイスファイルなら真である。| |-d File|指定したFileがディレクトリなら真である。| |-f File|指定したFileが通常ファイルなら真である。| |-L
13 簡単なパケロスチェックプログラム @bash:script
19 Hits, Last modified: 10 years ago
de console> #!/bin/sh IP=$1 LOG_DIR="./logs" LOG_FILE=${LOG_DIR}/${IP}_ping.log LOTATE_TIME="0000" # 00... while true; do date "+%Y%m%d-%H%M%S" >> ${LOG_FILE}; ping ${IP} -c 60 >> ${LOG_FILE}; if [ "$(date "+%H%M")" = "${LOTATE_TIME}" ];then D=`date "+%Y%m%d"` LOTATE_FILE=`echo ${LOG_FILE} | sed "s/.log$/_${D}.log/g"`
24 バックアップシェル(backup.sh) @bash:script
13 Hits, Last modified: 3 years ago
UP_LIST=${BACKUP_DIR}/conf TAR_OP="--sparse --one-file-system -zcp --numeric-owner --xattrs ." usage_exi... ho "Usage: $0 [-H host] [-p period type] [-l list_file] " 1>&2 exit 1 } while getopts p:H:l:h: ... ho "backup: $LINE" DIR=${LINE%:*} FILE_NAME=${LINE#*:} dir_check $BK_DIR ... dir_check $BK_DIR/DB if [ "${FILE_NAME}" == "all" ];then ssh $BAKHO
06 Bash リダイレクション
10 Hits, Last modified: 10 years ago
====== ===== 書式 標準入出力のリダイレクション ===== <code> > File 標準出力の内容をFileに書き込む >> File 標準出力の内容をFileに追加書きする。 >m ファイルディスプリタm番の内容を標準出力にコピーする。 (標準出力の内容をファイルディスプリタm番に向ける) >&-
21 Bash時間の比較 @bash:script
2 Hits, Last modified: 4 years ago
==== <code> if [ $(( $(date +%s)0 - $(stat -c %Y FILE)0 )) -gt $((60 * 60 * 24)) ];then echo '24時間以上経過' fi </code> <code> if [ "$(find FILE -mmin -$((60*24)) | wc -l)" -eq 0 ];then echo '
02 リモートファイルチェック @bash:script
1 Hits, Last modified: 10 years ago
====== 02 リモートファイルチェック ====== <code> chk_remote_file() { if [ `ssh ${1} test -e ${2} ; echo \$?` !=

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki