I have a log file with over 500000 lines and I want to use sed command to filter through the file and delete the first 5000 lines.
I have tried
sed -e '1,5000d' fileA.
where d is delete but this does not work. Any ideas ?
Regards
dodo14 :o
I have a log file with over 500000 lines and I want to use sed command to filter through the file and delete the first 5000 lines.
I have tried
sed -e '1,5000d' fileA.
where d is delete but this does not work. Any ideas ?
Regards
dodo14 :o
sed -e '1,5000d' fileA
will not delete the first 5000 lines from the file permanently.
Because, you are not redirecting the output to any file.
Do this.
sed -e '1,5000d' fileA > fileA.new