Changes between Version 7 and Version 8 of TipAndDoc/console/shell


Ignore:
Timestamp:
May 23, 2017 11:38:04 PM (8 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/console/shell

    v7 v8  
    7575 > }}} 
    7676 
     77 * [http://mattn.kaoriya.net/software/lang/shell/20080225124753.htm Big Sky :: findとxargsは便利だけど意外と実行したい処理はsortした結果だったりする場合が多い] 
     78 > {{{find . -name "*.txt" | grep '/[0-9]¥{8¥}¥.txt' | sort -n | tr ¥¥n ¥¥0 | xargs -0 ...}}} 
     79 
    7780 * [http://www.cyberciti.biz/faq/linux-unix-bsd-xargs-construct-argument-lists-utility/ xargs: How To Control and Use Command Line Arguments] 
    7881 
     
    8689 > ${変数名//置換前文字列/置換後文字列} → 文字列置換(マッチしたものすべて) 
    8790 > }}} 
     91 
     92