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 code was
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
# 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