![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| print line whatever line i want in a file... there any way | kittusri9 | Shell Programming and Scripting | 1 | 05-15-2008 09:37 AM |
| How to print 3rd to last line of file? | NivekRaz | Shell Programming and Scripting | 2 | 09-10-2007 05:04 PM |
| how to print out line numbers of a text file? | forevercalz | Shell Programming and Scripting | 4 | 12-12-2005 02:04 AM |
| Print file line by line | handak9 | Shell Programming and Scripting | 2 | 10-20-2005 05:44 AM |
| Print one line of Existing File | danhodges99 | UNIX for Dummies Questions & Answers | 2 | 02-25-2003 08:56 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#8
|
||||
|
||||
|
Quote:
sed -n '35{p;q;}' is a bit faster for large files. |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Quote:
Thats a catch ! I surrender I should have used ' last ' for the perl solutiohn ! |
|
#10
|
|||
|
|||
|
cat filename | head -35 | tail -1
|
|||
| Google The UNIX and Linux Forums |