Regarding grep in solaris

Posted by Arav on Stack Overflow See other posts from Stack Overflow or by Arav
Published on 2010-06-16T05:10:00Z Indexed on 2010/06/16 5:12 UTC
Read the original article Hit count: 249

I want grep for a particular work in multiple files. Multiple files are stored in variable testing.

TESTING=$(ls -tr *.txt)

echo $TESTING test.txt ab.txt bc.txt

grep "word" "$TESTING" grep: can't open test.txt ab.txt bc.txt

Giving me an error. Is there any other way to do it other than for loop

© Stack Overflow or respective owner

Related posts about linux

Related posts about unix