text file processors

Author
Discussion

Otispunkmeyer

Original Poster:

12,611 posts

156 months

Tuesday 22nd July 2014
quotequote all
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?

Otispunkmeyer

Original Poster:

12,611 posts

156 months

Tuesday 22nd July 2014
quotequote all
Cheers chaps

I shall give some of these a go.

Otispunkmeyer

Original Poster:

12,611 posts

156 months

Tuesday 22nd July 2014
quotequote all
Powershell works a treat. I wish I knew that existed sooner!!!