[NTLUG:Discuss] bash script help [not homework ;) ]?
Fred James
fredjame at concentric.net
Thu Apr 25 14:45:41 CDT 2002
No, I don't think Chris meant in the loop. I think he meant something like:
cp /dev/null score.html
somewhere before you enter the loop. I not sure of the end result in
this case, but I am pretty sure that is what Chirs meant, and I do know
that will guarantee you have an empty file to begin with.
Rev. wRy wrote:
> Chris Cox wrote:
>
>> Append to score.html using ">>"
>
>
> Right. And then I get the huge file.
>
>> Somewhere at the top of the script you'll want to remove
>> or null out score.html (so you don't keep on appending every
>> time you run).
>
>
> Ah...*light bulb goes on*
>
> So it's just figuring out where in which iteration of the loop to add
>
> rm score.html
>
> ???
>
> Thanks-
>
> Ry
> (will be a little miffed if it's that easy. :) )
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>
--
...make every program a filter...
More information about the Discuss
mailing list