| 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 | }}} |