Hi
Is there a way to delete alternate rows in Textpad?
I can do it in Excel, but I really need to do it in Textpad as we're talking about very large files here, and Textpad is by far the best editor for this kind of work.
Thanks,
Delete alternate rows
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 7
- Joined: Tue Jan 16, 2007 12:06 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
If the first line to be deleted is the second line of the file:
If the first line to be deleted is the first line of the file:Find what: (.*)\n.*\n
Replace with: \1\n
[X] Regular expression
These assume you are using Posix regular expression syntax:Find what: .*\n(.*)\n
Replace with: \1\n
[X] Regular expression
Edit: I had those the wrong way around. Now corrected.Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Last edited by ben_josephs on Tue Jan 16, 2007 3:20 pm, edited 1 time in total.
-
- Posts: 7
- Joined: Tue Jan 16, 2007 12:06 pm
-
- Posts: 7
- Joined: Tue Jan 16, 2007 12:06 pm
Delete rows
Hi
I have a need to take a list of items, and delete the 2nd, 3rd, 4th, 6th,7th,8th rows etc. for a VERY large file.
FYI it's to strip down a 50m height grid file to a 200m grid file.
Can anyone assist? I have tried a macro, but it just deletes everything.
Any help appreciated.
I have a need to take a list of items, and delete the 2nd, 3rd, 4th, 6th,7th,8th rows etc. for a VERY large file.
FYI it's to strip down a 50m height grid file to a 200m grid file.
Can anyone assist? I have tried a macro, but it just deletes everything.
Any help appreciated.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm