• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » 10
Trace: • 60 adaptech_raidのledランプを付ける. • 62 CentOS OpenVPNブリッジ接続 • counter • 31 iscsid • 29 Ceph Dashboard • 15 Windows10 チューニング • 05 subversion • 01 epel • 02 Silex • Rebuilding the FreeBSD Kernel

10

Search

You can find the results of your search below.

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

Matching pagenames:

  • 10 Bashでゼロパディング
  • 10 IPアドレス判定

Fulltext results:

01 ファイルの指定行を抜き出す @bash:script
6 Hits, Last modified: 4 years ago
れで、hogehoge.confの100行目を表示 <code console> $ sed -n 100p /etc/hogehoge.conf </code> ===== 指定行間を表示 =====... ehoge.confの100行目~120行目を表示 <code console> $ sed -n 100,120p /etc/hogehoge.conf </code> ===== 指定行目以降を表示 ===== これで100行目以降を表示 <code> $ tail -n +100 /etc/hogehoge.conf </code> ===== 指定行目以降でawk ===
01 Bash - 制御文
5 Hits, Last modified: 5 years ago
for _test02.sh <code> #!/bin/sh for (( i=0 ; i<10 ; i++ )) do echo $i done </code> 実行例 <code con... ile_test01.sh <code> #!/bin/sh A=1 while [ $A -lt 10 ] do echo "まだ10より小さい" A=`expr $A + 1` done ec... echo %%%%% sleep $INTERVAL done </code> 実行例 10分おきに実行し続ける。 <code console> $ ./while_test02.sh %%%
24 バックアップシェル(backup.sh) @bash:script
4 Hits, Last modified: 3 years ago
-l PATH=/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 10 0 * * * backup.sh -H root@hogehost -l hogehost -p day > /var/log/backup_day.log 2>&1 10 1 1 * * backup.sh -H root@hogehost -l hogehost -p... ar/log/backup_month.log 2>&1 ## hosts に書いておくパターン 10 0 * * * backup.sh -H hogehost -p day > /var/log/backup_day.log 2>&1 10 1 1 * * backup.sh -H hogehost -p month > /var/log
10 Bashでゼロパディング
3 Hits, Last modified: 6 years ago
====== 10 Bashでゼロパディング ====== Bashでゼロパディングする方法。 シンプルだけど、結構便利 <code> $ seq -w 10 01 02 03 04 05 06 07 08 09 10 </code> zero padding ゼロパディング {{tag>Bash}}
02 パラメータ変数
2 Hits, Last modified: 10 years ago
、$0はシェルスクリプト名、以降$1、$2…は第1引数、第2引数…である。\\ 第10引数以降は${10}、${11}…で参照する。| | $# |与えられた引数の個数| | $@ |$0以外の全
05 Bash 正規表現
2 Hits, Last modified: 10 years ago
[Gg]rep Grepまたはgrep に一致 ^[^0-9] 行頭が数字でないもの ^.\{10\}$ 10文字の行 test\|TEST testまたはTEST Woo* Woo,Wooo....に一致 </code> <code> [:alnum:](英数字[0-9A-Za-z]),
04 引数の取得 @bash:script
1 Hits, Last modified: 10 years ago
rg 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}}
10 IPアドレス判定 @bash:script
1 Hits, Last modified: 10 years ago
====== 10 IPアドレス判定 ====== <code console> if [ -n "`echo $IP |sed 's/^\([0-9]\{1,3\}\)\.\([0-9]\{1,3\}
20 awkで合計 @bash:script
1 Hits, Last modified: 8 years ago
== カラムが複数 ===== <code> $ cat a 1 2 2 3 3 5 4 8 5 10 $ cat a| awk '{s1+=$1} {s2+=$2} END {print s1" "

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