Think about Loose Coupling | |
PerlMonks |
Re^8: Sorting names using Regular Expressions and placing them in different Files.by strredwolf (Chaplain) |
on Dec 29, 2006 at 14:19 UTC ( [id://592223]=note: print w/replies, xml ) | Need Help?? |
Perl? Nah. BASH!
First, since the format is XXXX-dddd, you can echo the filename to "cut" and use a shell escape to put the XXXX part into another shell variable. Then echo the filename into the file specified in that variable.
Wrap a for loop for all files around it, and you got yourself a oneliner!
--
In Section
Seekers of Perl Wisdom
|
|