$ sed 's/^/get ' <filename> > <outputname>
Mark Landin
IT Support Analyst IV
Information Technology Department
T.D. Williamson, Inc.
6120 S. Yale Avenue I Suite 1700 I Tulsa, OK I 74136-4235
Phone: 918.447.5110 I Fax: 918.445.3811
[log in to unmask] I www.tdwilliamson.com
-----Original Message-----
From: HP9000 Computer Systems discussion list [mailto:[log in to unmask]] On Behalf Of Robert Mills
Sent: Thursday, November 17, 2011 9:21 AM
To: [log in to unmask]
Subject: [HP9000-L] Inserting a string at start of record in file.
I have a file containing a list of filenames created by the mls command within ftp. I need to insert the string 'get ' at the start of each filename in the file and have been told that sed is the best tool to use. Looking at the man page I am unable to understand how to tell sed what I want it to do.
HELP.....
regards,
Robert W.Mills
Analyst/Programmer
Port of Tilbury London Ltd
(T) 01375 852455
(M) 07770 606839
_________________________________________________________
Disclaimer: This email transmission is privileged, confidential and intended solely for the person or
organisation to whom it is addressed. If you are not the intended recipient, you must not copy, forward,
distribute or disseminate the information, or take any action in reliance of it. Any views expressed
in this message are those of the individual sender, except where the sender specifically states them
to be the views of Forth Ports Limited. If you have received this message in error please notify
Forth Ports Limited immediately by email to [log in to unmask] , and delete the message from
your computer. All messages passing through this gateway are checked for viruses but we strongly
recommend that you check for viruses using your own virus scanner as Forth Ports Limited will not
take responsibility for any damage caused as a result of virus infection. Also, as Internet Communications
are capable of data corruption, it may be inappropriate to rely on advice contained in an e-mail without
obtaining written confirmation of it, and Forth Ports Limited takes no responsibility for changes
made to this message after it was sent. The expression "Forth Ports Limited" for the purposes of
this disclaimer includes all Forth Ports group and associated companies.
Forth Ports Registered Offices
Forth Ports Limited
Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 134741
Port of Tilbury London Limited, Registered Office: Leslie Ford House, Tilbury Freeport, Tilbury, Essex, RM18 7EH, Registered in England No 2659118
Port of Dundee Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 155442
Forth Estuary Towage Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 76746
Forth Properties Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 124730
Forth Property Developments Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 223863
Forth Property Holdings Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 223868
Forth Property Investments Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 102967
Ocean Terminal Limited, Registered Office: 1 Prince of Wales Dock, Edinburgh, EH6 7DX, Registered in Scotland No 178696
Nordic Limited, Leslie Ford House, Tilbury Freeport, Essex RM18 7EH Registered in England No 5396187
Nordic Holdings Limited, Leslie Ford House, Tilbury Freeport, Essex RM18 7EH Registered in England No 3118969
Nordic Recycling (Lincoln) Limited, Leslie Ford House, Tilbury Freeport, Essex RM18 7EH Registered in England No 06232146
Nordic Recycling Limited, Leslie Ford House, Tilbury Freeport, Essex RM18 7EH Registered in England No 2963790
Nordic Forest Terminals Limited, Leslie Ford House, Tilbury Freeport, Essex RM18 7EH Registered in England No 03112560
Nordic Data Management Limited, Leslie Ford House, Tilbury Freeport, Essex RM18 7EH Registered in England No 3033517
This message and any attachments may be a confidential attorney-client communication or otherwise be privileged and confidential. If you are not the intended recipient, any review, distribution or copying of this transmittal is prohibited. If you have received this transmittal in error, please reply by e-mail and delete this message and all attachments
|