RE: [ILUG] silly shell thing

From: Guest, Ken (kengu at domain credo.ie)
Date: Wed 24 May 2000 - 11:33:48 IST


have you tried using vi?
:%s/^M//g

The ^M is entered as ctrl-V folled by "enter"

#-----Original Message-----
#From: John P. Looney (Kate) [mailto:jplooney-ilug at domain online.ie]
#Sent: Wednesday, May 24, 2000 11:25
#To: Irish LUG list
#Subject: [ILUG] silly shell thing
#
#
# I've a file that for some reason a windows editor has put in double
#newlines everywhere.
#
# Anyone got a good way of getting rid of them ? I tryed:
#
# cat file | tr -s \\n
#
# and
#
# cat file | sed -e 's/\n\n/\n'
#
# But neither did the trick...
#
#Kate
#
#--
#"The fool must be beaten with a stick, for an intelligent person
#the merest hint is sufficient" -- Zen Master Greg
#
#--
#Irish Linux Users' Group: ilug at domain linux.ie
#http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
#information.
#List maintainer: listmaster at domain linux.ie
#



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:15 GMT