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]
Yep - thought there might be a slicker way that moving it around to a temp
file that I didn't realize - thanks!

-- Brent

-----Original Message-----
From: EMAIL:PROTECTED
[mailto:EMAIL:PROTECTED]
Sent: Tuesday, March 02, 2004 10:53 PM
To: 'MLUG Members'
Subject: RE: [MLUG] prepending a file


A crude method:

In the loop:
	cat dest > tmp; cat source > dest; cat tmp >> dest;


Suman K

Suman Kanuganti
Control Engineer/Programmer
Univ. of Missouri-Columbia
http://www.missouri.edu/~skhcf

-----Original Message-----
From: EMAIL:PROTECTED
[mailto:EMAIL:PROTECTED] On Behalf Of Brent Deterding
Sent: Tuesday, March 02, 2004 10:28 PM
To: MLUG Members (E-mail)
Subject: [MLUG] prepending a file

I want to add some text to the top of a file - how do I do it? 

Like >> but at the beginning, not the end

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

<<attachment: winmail.dat>>

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