hasannoori
December 7th, 2010, 12:03 PM
Hi guys
I have a much massive text file with about 6Gb of data.
I want to remove for example first 15 lines of file, but how?
you may say that the answer is easy: "use gedit";
but since may file is much massive gedit and nano
cann't open the file in a finite time.
I'm using the following script:
#!/bin/sh
tail -n +num filename.txt > result_filename.txt
(whereas num mean the numbber)
I think that it dos not work properly,
because I cann't verify the result file.
Any suggestion or advise are welcome!
I have a much massive text file with about 6Gb of data.
I want to remove for example first 15 lines of file, but how?
you may say that the answer is easy: "use gedit";
but since may file is much massive gedit and nano
cann't open the file in a finite time.
I'm using the following script:
#!/bin/sh
tail -n +num filename.txt > result_filename.txt
(whereas num mean the numbber)
I think that it dos not work properly,
because I cann't verify the result file.
Any suggestion or advise are welcome!