text file processors
Discussion
Not sure whether I should put this in the science thread but I'll try here first.
Is there a program for editing text files en-mass?
For example what I would really want to do is stuff a load of text files in a folder and have a program simply blast through them all removing the first 3 rows/lines from each file and then re-saving.
I have notepad ++ but I can't see that this will do what I want. I could write a program in SciLab, but I don't know how you deal with many different file names. I need something that will just pick the next file, regardless of what the name is, strip out the top 3 rows and save.
Any ideas?
Is there a program for editing text files en-mass?
For example what I would really want to do is stuff a load of text files in a folder and have a program simply blast through them all removing the first 3 rows/lines from each file and then re-saving.
I have notepad ++ but I can't see that this will do what I want. I could write a program in SciLab, but I don't know how you deal with many different file names. I need something that will just pick the next file, regardless of what the name is, strip out the top 3 rows and save.
Any ideas?
Could be done in Notepad++ using 'Find in files' with the right regex;
http://superuser.com/questions/310380/notepad-dele...
http://superuser.com/questions/310380/notepad-dele...
Edited by mizx on Tuesday 22 July 11:30
Try this?
http://www.digitalvolcano.co.uk/textcrawler.html
A brilliant little program that's saved me hours on that kind of task
sorry just saw illmonkey said the same!
http://www.digitalvolcano.co.uk/textcrawler.html
A brilliant little program that's saved me hours on that kind of task
sorry just saw illmonkey said the same!
SlidingSideways said:
Confucius says: Man with problem who thinks solution is regular expression now has two problems.
That's why I skipped the section in the training I told the tutor I was skipping it because I would never use it. He said there may be a time when processing text that you would need it. I said you misunderstand me - I am *never* going to use it Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff