Multiple-deletion of specific content in files in a folder

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
tonynapa
Posts: 2
Joined: Tue Jul 27, 2010 12:37 pm

Multiple-deletion of specific content in files in a folder

Post by tonynapa »

Hi there. I was trying to find a solution in a problem that i had have for 2-3 days.

Here is my problem:
I have a folder with 3.5Gb of files (aprox. 1000 files) and i want to delete certain lines in each file in the same folder.
I used a macro that i created, that basically is bookmarking all the lines that i want to delete, (i.e lines that contain zeros) deleting them and saving them; but is only work for each file. So i must open one by one file.

How can i delete all the files from my folder my once?
User avatar
SteveH
Posts: 327
Joined: Thu Apr 03, 2003 11:37 am
Location: Edinburgh, Scotland
Contact:

Post by SteveH »

It sounds like WildEdit might be a better solution to this problem.
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
tonynapa
Posts: 2
Joined: Tue Jul 27, 2010 12:37 pm

Post by tonynapa »

I just download it, but because is a trial version i cannot use it for file more than 10kb.
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

So, test it out on some 10K files.

If it works, then purchase it for use on the larger files.
Hope this was helpful.............good luck,
Bob
PaulBrewer44
Posts: 5
Joined: Thu Jul 22, 2010 3:07 pm

Post by PaulBrewer44 »

Can't you open all files, then find a replace in all documents

eg find .+0.+\n
replace with (nothing!)

Obviously assuming here you are looknig to delete all lines with the string 000.
PaulBrewer44
Posts: 5
Joined: Thu Jul 22, 2010 3:07 pm

Post by PaulBrewer44 »

PaulBrewer44 wrote:Can't you open all files, then find a replace in all documents

eg find .+0.+\n
replace with (nothing!)

Obviously assuming here you are looknig to delete all lines with the string 000.
meant to add you need to open all files and select "all documents" in the find and replace dialogue box. I think it will work but it might take a while, not sure.
Post Reply