Is there an easy way to delete the first so many lines in a log file?
like I have a log file that has 10000 lines, i want to just get rid of the first 9000.
Is there an easy way to delete the first so many lines in a log file?
like I have a log file that has 10000 lines, i want to just get rid of the first 9000.
Use tail to get the last bunch to a tmp file, remove/truncate this file, then move the tmp file over to the original.
If you don't want to use a tmp file, use ex. Can't tell you how that might go, cause don't have access to a nix box now.