Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Kiran Kumar K V N
on Dec 28, 2006 at 18:41 UTC ( #592121=note: print w/replies, xml ) Need Help??


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

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^7: Sorting names using Regular Expressions and placing them in different Files.

Replies are listed 'Best First'.
Re^8: Sorting names using Regular Expressions and placing them in different Files.
by strredwolf (Chaplain) on Dec 29, 2006 at 14:19 UTC
    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";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://592121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2021-04-20 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?