環境
- OS: FreeBSD 9.0 STABLE
PATHのコロン区切り展開が sed なあたりが特に苦しまぎれだが、 スマートな解決はあるだろうか。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
for p in `echo $PATH | sed "s/:/ /g"` | |
do | |
echo directory: ${p} | |
ls -laR ${p} | |
done |
0 件のコメント:
コメントを投稿