in reply to batch rename with a 1 liner
Next grab a copy of $_, perform substitution on $_ and printperl -le'for(<*html>){print}'
Finally, drop the print and do some damageperl -le'for(<*html>){$o=$_;s/^new/U/;print}'
The first step is just to set up a working one-liner. The second step is important, as you will see what the results will look like, but i still like to live dangerously and just hammer out the third step unless i am using data of any importance. Be safe. :)perl -e'for(<*html>){$o=$_;s/^new/U/;rename $o,$_}'
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|