Re: Bourn Shell Scripts that Produce Multiple Files

2005-04-06 Thread Martin McCormick
Mario Hoerich writes: >This sounds a bit like a truncation issue. > >If you do something like > >command1 > bar ># some code >command2 > bar > >then the second redirect will truncate the file to 0 bytes >before redirecting the output from command2 into it. Yes. My

Re: Bourn Shell Scripts that Produce Multiple Files

2005-04-05 Thread Mario Hoerich
# Martin McCormick: > I wrote a Bourn Shell script which has a while loop in it that > reads a file line by line. The output of the script is supposed to go > to a file with a different name for each iteration of the loop. This > scheme is obviously a rotten idea because all the new files e

Bourn Shell Scripts that Produce Multiple Files

2005-04-05 Thread Martin McCormick
I wrote a Bourn Shell script which has a while loop in it that reads a file line by line. The output of the script is supposed to go to a file with a different name for each iteration of the loop. This scheme is obviously a rotten idea because all the new files end up created, but quite e