I have a file "C:\properties.txt"
In the file contains lines that start with “ConfigPoll”
The first is line 72 which I wanna keep, but at the end of the file exists multiple “ConfigPoll” lines. I want to delete all lines containing “ConfigPoll” after line 72.
appendfile {concatenation “%0d%0a” of lines whose ((line number of it >= 72 and it does not contain “ConfigPoll”) or line number of it < 72) of file “<path_to_file>orgfile.ext”}
move __appendfile “<path_to_file>file.ext”
appendfile {concatenation “%0d%0a” of lines whose ((line number of it > 72 and it does not contain “ConfigPoll”) or line number of it <= 72) of file “<path_to_file>orgfile.ext”}
move __appendfile “<path_to_file>file.ext”