Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Swapping names of list while keeping the contents as it is.

by zing (Beadle)
on Aug 30, 2012 at 18:31 UTC ( #990817=note: print w/ replies, xml ) Need Help??


in reply to Swapping names of list while keeping the contents as it is.

Ahh!!!!! Got it SOLUTION

cut -f2- -d ' ' list.txt| sed '1~2 s/^/bob /' | sed '2~2 s/^/jay /'


Comment on Re: Swapping names of list while keeping the contents as it is.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-04-21 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls