I tried all those suggestions, but unfortunately none of them worked. Either sed or the command interpreter doesn't seem to understand the extended characters (). I ended up working around the extra characters another way. I just replaced the whole line with the line that should be there, since the first line is always the same. Thanks for all your suggestions.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Landry Sent: Tuesday, October 12, 2004 5:20 PM To: [EMAIL PROTECTED] Subject: Re: [IMail Forum] OT: UnxUtils SED help Oh, and in case you really wanted to use sed: sed s///g original.txt > new.txt Bill ----- Original Message ----- From: "Bill Landry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 1:27 PM Subject: Re: [IMail Forum] OT: UnxUtils SED help > Although you can certainly do this with "sed", why not use something much > simpler like "tr", also included with the UNIX Utils? For example: > > cat original.txt | tr -d "" > new.txt > > Bill > ----- Original Message ----- > From: "Dan Horne" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 12, 2004 11:18 AM > Subject: [IMail Forum] OT: UnxUtils SED help > > > I am trying to use the unxutils in a script I am writing and I am having a > problem. Since this is where I heard of the Unxutils, I thought I'd ask my > question here. > > The main problem is that I am not familiar with the tools, so this is > probably a no-brainer. > > I have a file that is downloaded on a regular basis, but no matter how I > download it, the first line of the file is always prepended by 3 garbled > characters (). What I want to do is simply use sed to remove those first > three characters and output the remainder of the file. Anyone? > > TY > > Dan Horne > Web Services Administrator > TAIS Web > Wilcox World Travel & Tours > [EMAIL PROTECTED] > ---------------------------------------------------- > > CONFIDENTIALITY NOTICE: > This email message, including any attachments, is for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. Any unauthorized review, use, disclosure or distribution is > prohibited. If you are not the intended recipient, please contact the sender > by reply email and destroy all copies of the original message. > > SPAM-FREE 1.0(2476) > > > > > > To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html > List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ > Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ > > > To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html > List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ > Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ > To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
