$ cat find-word
  
#!/bin/sh
  
#--- 引数のチェック
### もし引数の個数が2つでなければ、使用例を出力して終了
if [ $# = 2 ]; then
#    echo "usage: $0 strings" 1>&2
find $1 -exec grep -l "$2" {} ¥; 2> /dev/null
    exit 0
fi
  
#--- 使用例
echo "example: find [dir] [Keyword]"
  

 RSS2.0
 RSS2.0














 Y:
 Y:



 Online:
 Online: 
Comments