Changes between Version 1 and Version 2 of TipAndDoc/console/shell


Ignore:
Timestamp:
Oct 4, 2012 10:52:18 AM (11 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/console/shell

    v1 v2  
    2929 > ※↑INT シグナルで終了した場合も EXIT シグナルは trap できる。 
    3030 > }}} 
     31 
     32 * [http://stackoverflow.com/questions/845863/how-to-use-in-an-xargs-command bash - How to use > in an xargs command? - Stack Overflow] 
     33  * {} の使い方の例(?) 
     34 * ディレクトリだけを見つける 
     35  * $ find -exec sh -c '[ -d "$1" ] && echo "$1"' -- {} \; 
     36{{{ 
     37. 
     38./.ssh 
     39./.cache 
     40./.aptitude 
     41./.debtags 
     42./.screen 
     43./public_html 
     44 
     45... 
     46}}} 
     47 * シンボリックリンクを見つける 
     48  * $ find /etc/apache2/ -exec sh -c '[ -L "$1" ] && echo "$1"' -- {} \; 
     49{{{ 
     50/etc/apache2/mods-enabled/alias.conf 
     51/etc/apache2/mods-enabled/alias.load 
     52/etc/apache2/mods-enabled/autoindex.conf 
     53/etc/apache2/mods-enabled/autoindex.load 
     54/etc/apache2/mods-enabled/dir.conf 
     55/etc/apache2/mods-enabled/dir.load 
     56 
     57... 
     58}}}