* Niclas Hedhman ([EMAIL PROTECTED]) wrote:
>
> If I have two files, 'abc' and 'def'
>
> and I do a
>
> cat abc def | more >def
>
> 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?
>
>
> Niclas
I don't understand. Why are you piping through more?
Why not just
cat abc def > def
or
cat def >> abc
?
Tom.
--
.-------------------------------------------------------.
.^. | Tom Gilbert, England | [EMAIL PROTECTED] |
/V\ |----------------------| www.tomgilbert.freeserve.co.uk |
// \\ | Sites I recommend: `--------------------------------|
/( )\ | www.freshmeat.net www.enlightenment.org slashdot.org |
^^-^^ `-------------------------------------------------------'