Multiple files editing
- From: GT <g.thibaudeau@xxxxxxxx>
- Date: Tue, 28 Aug 2007 16:16:06 +0200
First of all thanks to birre, Rich Leitner and J.O. Aho for their responses, it gave me something to think about and better define my reasoning.
As a reminder I have to make changes to a large set of files. These changes would be small (a line or so), but, and this is an added constraint, one of the changes (applicable to the whole set of files) would be a command whose argument would depend upon the preceding / following line.
Ok, to be explicit : I am changing a set of DOS batch files that makes calls and things. I need to know what is going and found that the best way was to create a log file. This file is fed by "echo" statements whose arguments are basically the date and what file we're in.
I did this for 80-odd files, manually, for I thought that would be the end of it. However some bat files call others etc ... who call fortran exe, that do other things, and basically my original idea becomes a tad too simple.
So, from a bat file containing :
call something
I wish to replace it by :
echo (options) something >> logfile
call something
echo (options) out of something >> logfile
If there was a way to log call errors as well, life would be nice.
It seems DOS is a little poor in terms of utilities. I could write a fortran proggy but if there was a simpler way under linux, which is often the case, that would be nice.
Hope this is clear.
Thanks for any advice / help
GT
.
- Follow-Ups:
- Re: Multiple files editing
- From: Theo v. Werkhoven
- Re: Multiple files editing
- Prev by Date: Re: Apps swapped out without swap or what?
- Next by Date: Any Insider Knowledge when CNR will be ready for Linspire, and the other distro's?
- Previous by thread: dont buy this Trendnet TU-S9 serial to usb adaptor
- Next by thread: Re: Multiple files editing
- Index(es):
Relevant Pages
|