the following shell script are looping all files of a folder ,and then find the keyword from every file FILES=/path/to/* for f in $FILES do echo "Processing $f file..." # take action on each file. $f store current file name cat $f grep -n keyword $f done
Sample Shell Script To Loop Through All Files
最新推荐文章于 2022-11-09 12:49:50 发布