On Mon, Jul 28, 2003 at 11:21:58AM -0400, Thomas David Rivers wrote: > John, > > There's a simpler way... (perl is, typically, overkill.) > To strip the blanks from a file, just use "sed": > > cat $file | sed "s/ *$//" > /tmp/strip.$$ > mv /tmp/strip.$$ $file
s/"/'/g . Otherwise the shell might try expanding the '$' anyway, perl may be an overkill, but also a typesaver: perl -pi -e 's/ *$//' $file -- Tzafrir Cohen +---------------------------+ http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend| mailto:[EMAIL PROTECTED] +---------------------------+
