|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Captured some records in the files ?
Hi,
Actually I have one files with 490938351 bytes for filesize and 3747621 lines. So, my problem is how to captured some records of files at line 33545 until 33600 and 33545 until ends of files. Previously, I tried used tail command but the result is totally out : Code:
cat original_files.txt |tail -3714077 > output1.txt I did not know what's going on, might be the data is very bigs and more than 20 kybtes.... from man tail "...Tails relative to end-of-file are stored in a 20-Kbyte buffer", So, anyone could help me how to capture the records ?
__________________
Thank you, bh_perl Swisscash .. Proven.. Investment Plan 7 Dollars Magic Proven.. Investment Plan |
|
#2
|
|||
|
|||
|
sed to the rescue...
Try these commands...
PHP Code:
Good luck. (forgot the -n flag to supress default output) Last edited by Nevets : April 22nd, 2004 at 02:10 PM. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Captured some records in the files ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|