![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
a
what does this one do?
cat $FOR_FIL | grep PAY | cut -c 92-106 | tail -$i |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
| Thread Tools | |
| Display Modes | |
|
|