• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » tag
Trace: • 02 print() • 07 Python Selenium • charu • wikicalendar • 18 awkをシェル内で利用 • 03 Ubuntu iptables • 58 Mattermost • 09 Heartbeat • 10 Memchached • 71 vsftpd

tag

Search

You can find the results of your search below.

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

Fulltext results:

01 ファイルの指定行を抜き出す
1 Hits, Last modified: 4 years ago
== 指定行目以降でawk ===== 3行目以降を表示 <code> $ awk 'NR>2 {print}' /etc/hogehoge.conf </code> {{tag>bash awk}}
02 リモートファイルチェック
1 Hits, Last modified: 10 years ago
1} test -d ${2} ; echo \$?` != "0" ]; then return 1 fi return 0 } </code> {{tag>bash}}
03 実行シェルのディレクトリ
1 Hits, Last modified: 10 years ago
rname $0` echo $DIR </code> <code console> $ dirname /usr/bin/nkf /usr/bin </code> {{tag>bash}}
04 引数の取得
1 Hits, Last modified: 10 years ago
Arg 4 = d Arg 5 = e Arg 6 = f Arg 7 = g Arg 8 = h Arg 9 = i Arg 10 = j Arg 11 = k </code> {{tag>bash}}
05 引数の取得(getopts)
1 Hits, Last modified: 10 years ago
age_exit fi echo "size=$_size count=$_count vg_name=$_vg_name action=$_action" </code> {{tag>bash}}
06 応答で処理を分岐する
1 Hits, Last modified: 10 years ago
lear q|Q) exit 2 /home/matsui/work 1) ls -sF 2) pwd 3) w 4) clear q|Q) exit q $ </code> {{tag>bash}}
07 数値チェック
1 Hits, Last modified: 10 years ago
's/[0-9]//g' ` if [ -n "$A" ]; then echo "文字列も含まれます。" else echo "数値だけです。" fi </code> {{tag>bash}}
08 複数行のコメントアウト
1 Hits, Last modified: 10 years ago
!/bin/bash (スクリプト) : << '#COMMENT_OUT' (コメントアウトしたい部分) #COMMENT_OUT (スクリプト続き) </code> {{tag>bash}}
09 color表示
1 Hits, Last modified: 10 years ago
[43m AAAA \e[0m" </code> 3.大文字緑にする。 <code console> echo -e "\e[1;32m AAAA \e[0m" </code> {{tag>bash}}
10 IPアドレス判定
1 Hits, Last modified: 10 years ago
grep -e "[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}" /var/log/secure </code> {{tag>bash}}
11 Probress Bar
1 Hits, Last modified: 10 years ago
ge() { echo "usage:$0 [command]"; exit; } [ $# = 0 ] && usage "$@" & progress </code> {{tag>bash}}
12 Sed 最短一致
1 Hits, Last modified: 9 years ago
に不一致を利用する。 <code bash> $ echo "AAA-BBB-CCC" | sed 's/^\([^-]*\).*/\1/g' AAA </code> {{tag>bash sed}}
13 簡単なパケロスチェックプログラム
1 Hits, Last modified: 10 years ago
ping ${IP} -c 1 -w 1 > /dev/null ↓ ping -c 1 -t 1 ${IP} > /dev/null </code> {{tag>bash network}}
14 処理にかかった時間を確認
1 Hits, Last modified: 10 years ago
S} % 3600` MM=`expr ${SS} / 60` SS=`expr ${SS} % 60` echo "${HH}:${MM}:${SS}" </code> {{tag>bash}}
15 awkでカウント
1 Hits, Last modified: 5 years ago
(i in count) {if(count[i] > 1) {print i " : " count[i]"個"} } }' C : 3個 D : 2個 </code> {{tag>bash awk}}
16 awkでチェック
1 Hits, Last modified: 10 years ago
17 swapを食っているプロセスを調べる
1 Hits, Last modified: 9 years ago
18 awkをシェル内で利用
1 Hits, Last modified: 9 years ago
19 expectで自動su
1 Hits, Last modified: 9 years ago
20 awkで合計
1 Hits, Last modified: 8 years ago
21 Bash時間の比較
1 Hits, Last modified: 4 years ago
22 Bash flock 2重起動防止
1 Hits, Last modified: 4 years ago
23 bash split
1 Hits, Last modified: 4 years ago
24 バックアップシェル(backup.sh)
1 Hits, Last modified: 3 years ago
25 awk N行目以降
1 Hits, Last modified: 3 years ago
26 pgrepで2重起動防止
1 Hits, Last modified: 3 years ago

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