[olug] something sed, nothing gained

George Neill gneill1 at home.com
Fri Dec 29 10:25:07 UTC 2000


Mike-

  I actually can't remember where I picked these up?   I think it was in a
vi(m) doc on the web.  Try www.vim.org -or- it was in one of my O'Reilly
books ?  I remember reading, and saying Cool!  But that probably doesn't
help at all :>)   Let me know if you can't find anything.

George.



-----Original Message-----
From: Mike McNally [mailto:mmcnally3 at prodigy.net]
Sent: Thursday, December 28, 2000 10:47 PM
To: olug at bstc.net
Subject: Re: [olug] something sed, nothing gained


Thanks George, that works.  Say, where do you look to find keybrd
translation stuff like this?  ^M = ctrl-v <enter>


found this:	perl -pe s/\r//

Using this saves one from having to remember that \r is ctrl-m which is
ctrl-v.


On Thu 28 Dec 2000, George Neill wrote:

> sed -e s/^M//g file > someotherfile       ( ^M = [control-v][Enter] )
>
> also works nice in Vi(m).
>
> :%s/^M//g
>
>
> Hopefully something gained now ... :)
> George.

--

Mike McNally		mmcnally3 at prodigy.net

---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net


---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list