This exactly what I want to avoid... :-)
cat header_file >temp_file cat plain_text >>temp_file mv temp_file plain_text Noting fancy but it should work. Regards, Terry
Martin Mielke wrote:
Dear all,
how can I append a text header to a plain-text file (source code) without deleting what's been already there?
On Thu, Jan 25, 2001 at 05:21:51PM +0100, martinm@people-com.com wrote:
This exactly what I want to avoid... :-)
In that case, use PERL in in-place-edit mode: #!/usr/local/bin/perl -i print "rubbish\n"; while (<>) { print } -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk
participants (2)
-
Dave Smith
-
Martin Mielke