Search Results

Search: Posts Made By: slant-40
10,425
Posted By slant-40
you need to assign ls-rt *.log | tail -n 1 to a...
you need to assign ls-rt *.log | tail -n 1 to a variable, then grep that.
add | wc -l to the end of it to get the count


a=
a=`ls -rt *.log | tail -n 1`
cat $a | grep "FT" | wc -l
Showing results 1 to 1 of 1

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