[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stupid Question: Striping Dos ^M From Texts



Curt Howland wrote:
> 
> Somewhere in the dank recesses of my mind, I recall
> a utility that would strip the extra ^M's from a
> text file copied to a unix box. Well, it seems that
> Linux also considers these ^M's extranious, is there
> such a standard utility or do I have to dig even
> deeper to remember sed/awk/grep commands?  :^>

cat file1 | tr -d '\r' > file2

-- 
Jens B. Jorgensen
jjorgens@bdsinc.com


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: