MLUG: RE: [MLUG] prepending a file
RE: [MLUG] prepending a file
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why are you all making this so hard?  This should work in bash/sh and
csh/tcsh:

  ( cat tmp2 ; cat tmp1 ) > out && mv -f out tmp1

You can run commands in the parens as well; just separate everything
with semicolons.  No Perl needed.  The awk solutions are probably the
cleanest though.

     ryan woodsmall
        EMAIL:PROTECTED 

> -----Original Message-----
> From: EMAIL:PROTECTED 
> [mailto:EMAIL:PROTECTED] On Behalf Of Brent 
> Deterding
> Sent: Tuesday, March 02, 2004 11:12 PM
> To: 'MLUG Members'
> Subject: RE: [MLUG] prepending a file
> 
> Yep - thought there might be a slicker way that moving it 
> around to a temp file that I didn't realize - thanks!
> 
> -- Brent

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members