Mailing List Archive

Support open source code!


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

Re: tlug: sed help




On 04-Dec-98 Scott Stone wrote:
> (sed 's/\r//g' file > file.new;mv -f file.new file)

I guess you guys don't use vi much:

1,$ s/^M//

where ^M is Ctrl V Ctrl M

Now, can anyone get it shorter than that? ;-)

Jim S.


------------------------------------------------------------------
Next Technical Meeting: 12 December, 12:30 at Temple Univ. Japan
*NEW LOCATION* a map is available at http://www.tuj.ac.jp/maps.html
Next Nomikai: 15 January 1999, 19:30 Tengu TokyoEkiMae 03-3275-3691
------------------------------------------------------------------
more info: http://tlug.linux.or.jp                     Sponsor: PHT


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links