标签: bash
grep 'string-in-files' /path/to/files/* /path/to/files/file1: matching output /path/to/files/file2: matching output
我想要这样的东西,并希望整个过程像$ i一样:
for i in `grep 'string-in-files' /path/to/files/*`; do file=`echo $i | awk '{print $1}'`;done;