Quoth Jason Van Cleve, on Wed, 4 May 2005 20:46:40 -0700:

>   sed -r -i s/[\ \      ]*$//g $files

Addendum:  I found some source files with DOS newlines in them, and this
sed command doesn't work on those.  Evidently sed is stupid with regard
to newlines, so now it's:

  dos2unix -k -q -o $files
  sed -r -i s/[\ \      ]*$//g $files

Sure, sed is speedy, but does it do one thing well? . . .

--Jason

--
I'd give my right arm to be ambidextrous!
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to