On Sun, 16 Jan 2000, Niclas Hedhman wrote about, Scripting problems.:
> If I have two files, 'abc' and 'def'
>
> and I do a
>
> cat abc def | more >def
What you are doing is catting both files via more and a redirect with
will overwrite the line over and over, use >> instaed of >
> overwrites
>> appends to the bottom of the file.
As to what you are trying to achive i cant imagen, why use "more" ??
cat file1 >>file2
Would be a beter way one would think.
> the content of 'abc' is prepended to the 'def' file.
>
> If I create a script;
>
> #! /bin/sh
> #
> cat abc def | more >def
>
>
> and run it. The content is NOT prepended.
>
> WHY??
>
> And how to do it instead?
Read the longest manual pages there is;
man bash
>
>
> Niclas
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
Happy New Year