a


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers a
# 1  
Old 05-23-2006
a

what does this one do?


cat $FOR_FIL | grep PAY | cut -c 92-106 | tail -$i
# 2  
Old 05-23-2006
re

It finds(greps) lines having PAY in $FOR_FIL(file) and gets the characters from 92-106 and gives the last 'i' lines as the output.

Instead of cat $FOR_FIL, you could use - grep PAY $FOR_FIL which is a good way of scripting.
# 3  
Old 05-23-2006
does its function just the same?
# 4  
Old 05-23-2006
yes

It achieves the same functionality. May be you should 'man grep' and see for yourself.
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question