mpd has asked for the wisdom of the Perl Monks concerning the following question:
getting the files to be moved is no problem, but is there an easy way to translate the $1, etc given on the command line to the value matched in the regexp? My results getting the $1 to evaluate to the first match instead of the literal string have so far have been unsuccessful. Any pointers?
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: mmv-like hack in perl?
by merlyn (Sage) on Apr 14, 2003 at 01:42 UTC | |
by mpd (Monk) on Apr 14, 2003 at 05:20 UTC | |
by merlyn (Sage) on Apr 14, 2003 at 10:13 UTC | |
by mpd (Monk) on Apr 14, 2003 at 16:08 UTC | |
Re: mmv-like hack in perl? (don't use s///)
by Aristotle (Chancellor) on Apr 14, 2003 at 11:23 UTC |