Search Results

Search: Posts Made By: sergiosantos
1,574
Posted By sergiosantos
Try this one: ls | tail -5 > /tmp/tot.txt ...
Try this one:

ls | tail -5 > /tmp/tot.txt
astring=ball

for i in `cat /tmp/tot.txt`
do
a=`cat $i | grep $astring | wc -l`
echo " There are $a $astring in the file...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy