I want just delete the first 3 lines of files,nothing else to do,
but
sed -i.bak '1,3d' *txt
seems very slow for huge files, and I tried sed -i.bak '1,3d;4q' *.txt, remaining only one line, is there any suggestion?
I want just delete the first 3 lines of files,nothing else to do,
but
sed -i.bak '1,3d' *txt
seems very slow for huge files, and I tried sed -i.bak '1,3d;4q' *.txt, remaining only one line, is there any suggestion?
more +3 file
thanks for your reply, but "more" take more time than "sed"
Try this...
perl -i -pe '$_=""if 1..3' *.txt