Operating System - HP-UX
1748169 Members
4044 Online
108758 Solutions
New Discussion

Re: Advanced find of text in files with formatted output

 
Prashant Zanwar_4
Respected Contributor

Re: Advanced find of text in files with formatted output

for file in `ls -1trR`
do
echo $file
grep -in "$pattern" $file
done | more

Hope this helps.
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."