[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] whitespace
- Subject: [ale] whitespace
- From: fletch at phydeaux.org (Fletch)
- Date: 20 Sep 2000 09:50:47 -0400
>>>>> "Danny" == Danny Cox <danny at compgen.com> writes:
[...]
Danny> perl:
Danny> while (<>) { s/\s+$//; print; }
The following will do it in place:
perl -i -pe 's/\s+$//' file [file file . . .]
See `perldoc perlrun' for more info on -i and -p (and -n, and
-e, and other cool command line switches).
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.