ilikenine
asked on
no temp file and delte few lines
Hi,
How can i delete first few lines from a file, without creating a temporary file.
My problem is: I have a very big file and i have to delete the first 4 lines of the file. As the file is too big i want to avoid creating a temp file.
I can do it by creating a temp file like thi
sed '1,4d' file1 > file2
mv file2 file1
But i don't want to create a temp file.
Thanks
GG
How can i delete first few lines from a file, without creating a temporary file.
My problem is: I have a very big file and i have to delete the first 4 lines of the file. As the file is too big i want to avoid creating a temp file.
I can do it by creating a temp file like thi
sed '1,4d' file1 > file2
mv file2 file1
But i don't want to create a temp file.
Thanks
GG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.