[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

here strings



Hands off here strings, you unprincipled boors!  Real Example time
(flog that dead horse, I know, but this was too good not to mail,
and the old hands know how I feel about Real Examples): I had
a directory full of files that had come from, ah, another operating
system, and the names were all upper-case:

	for (f in *) mv $f `{tr A-Z a-z <<<$f}

(Adjust your brain, and your $home/bin, as needed if your tr is infected
with the SysVile square-bracket virus... they're _not_ character classes!)

OK,
John.