Delete Lines 1-345 and Line 835

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
jellygoose
Posts: 3
Joined: Fri May 07, 2010 4:43 pm

Delete Lines 1-345 and Line 835

Post by jellygoose »

Hello there,

i just searched the forums but couldn't get an answer to my simple question. I need to reformat a bunch of txt files and the first step would be to delete Lines 1-345 in each as well as the last line. The lines don't have an expression to search for though. How would I go about it?

Thanks for your help!
jellygoose
Posts: 3
Joined: Fri May 07, 2010 4:43 pm

Post by jellygoose »

Can anybody help? This issue can't be so complicated, or?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You could record a macro to do it:

1. Click Macros > Record
2. Press Ctrl+Home to move to the start of the document
3. Click Search > Go To
4. Select Line, type 346 in the box, select Extend selection and click Go To
5. Press Delete to delete the selected lines
6. Press Ctrl+End to move to the end of the document
7. Press Up to move to the last line of text if necessary
8. Click Edit > Delete > Line
9. Click Macros > Stop Recording

You would need to open each file and run the macro in each one. Does that help?

Alternatively, someone else may be able to give instructions on how to do it in WildEdit.

Andrew
jellygoose
Posts: 3
Joined: Fri May 07, 2010 4:43 pm

Post by jellygoose »

hey, thanks for your help... i'll try this out and tell you if it worked like that!
Post Reply