Page 1 of 1

Delete every other row

Posted: Mon Dec 17, 2012 12:41 pm
by garytvh
How can I delete every other row in a large text file?

Posted: Mon Dec 17, 2012 1:08 pm
by ben_josephs
Use "Posix" regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
Search | Replace... (<F8>):
Find what: (.*)\n.*\n
Replace with: \1\n

[X] Regular expression

Replace All
or, if you want the other ones,
Find what: .*\n(.*)\n
Replace with: \1\n

[X] Regular expression

Replace All