![]() |
|
|
|
|
|||||||
| 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 |
| Script that extract some lines from a file lookin into another | heartwork | Shell Programming and Scripting | 7 | 01-25-2008 03:57 AM |
| Extract lines from a file automatically. Please a Help | alexcol | Shell Programming and Scripting | 8 | 12-16-2006 02:25 PM |
| How to extract a sequence of n lines from a file | 0ktalmagik | Shell Programming and Scripting | 4 | 06-29-2006 08:24 PM |
| how to extract a range of lines from a file | beilstwh | Shell Programming and Scripting | 5 | 07-09-2004 05:20 AM |
| extract specific lines from file | apalex | UNIX for Dummies Questions & Answers | 2 | 05-15-2001 06:57 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
How to extract many lines from a file, typically the 1000 last
Hello!
Is it anyone who might know how to extract the n last lines from a file, typically the 1000 last? Until know I have used sed -n np filename, but it takes each line separately, and is hence very time consuming. Thank you in advance! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
man tail.
Code:
tail -1000 file.to.extract.from |
|
#3
|
|||
|
|||
|
tail?
$ tail -1000 filename |
|
#4
|
|||
|
|||
|
That was fast! Thank you a lot!!
|
|||
| Google The UNIX and Linux Forums |