[ale] whitespace

Fletch fletch at phydeaux.org
Wed Sep 20 09:50:47 EDT 2000


>>>>> "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.





More information about the Ale mailing list