Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 ( #592223=note: print w/replies, xml ) Need Help??


in reply to Re^7: Sorting names using Regular Expressions and placing them in different Files.
in thread Sorting names using Regular Expressions and placing them in different Files.

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!

--
$Stalag99{"URL"}="http://stalag99.keenspace.com";

  • Comment on Re^8: Sorting names using Regular Expressions and placing them in different Files.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://592223]
help
Chatterbox?
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-06-29 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.