Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tail 1

Status
Not open for further replies.

hammam02

IS-IT--Management
Mar 23, 2009
27
EG
hi friends

i need to display file without last 6 record

tail -6 XXXXXX

result : display the last 6

any option catn i put it in command
 
head -$(($(wc -l<XXXXXX)-6)) XXXXXX

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi

Here on Tek-Tips we used to thank for the received help by giving stars. Please click the

* [navy]Thank PHV
for this valuable post![/navy]


at the bottom of PHV's post. That way you both show your gratitude and indicate this thread as helpful.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top