Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

changing full name to last, first mid

by NodeReaper (Curate)
on May 24, 2004 at 20:29 UTC ( [id://356041]=perlquestion: print w/replies, xml ) Need Help??

NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Mon May 24 17:09:27 2004 (EST)

Replies are listed 'Best First'.
Re: changing full name to last, first mid
by fletcher_the_dog (Friar) on May 24, 2004 at 21:12 UTC
    From the command line you could just do:
    perl -p -i -e 's/^(.*?)\s*(\w+)\s*$/$2, $1\n/' list.txt
      Thank you thank you thank you...you have saved me much student input time....gde

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-23 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found