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/

Reply via email to