How to remove first 50 lines on each files using NOTEPAD PLUS
-
Hello , this is very important to me at least I spend 8 days now trying all kind of things I found using google search to do that and I give up and need help ASAP
1 - I have thousands of files that I need to remove first 50 line from each file
2 - I have some files that I need to remove 50 lines from the bottom as well
3 - How to remove bookmarked lines or NON bookmarked lines from multi files or all current open files ?
is it possible to add this option to MARK list or the Mark window tap ?
thanks in advance
-
1 - find:
(?-s)(?:.*\R){50}(?s)(.*)
/ repl:${1}
/ mode: regular expression / (note: other ways to do it certainly possible)2 - find:
(?-s)(.*\R){50}\z
/ repl: nothing / mode: regular expression / (note: other ways to do it certainly possible)3 - not currently possible to do in one action
(4) - you’d have to ask for it in a feature request; see HERE for a description of the process
note: 1 and 2 could be written so that it was a single operation accomplishing both – I did not do that