On Thu, Jul 22, 2010 at 2:34 AM, Dr.Ruud
<rvtol+use...@isolution.nl<rvtol%2buse...@isolution.nl>
> wrote:

> Jim Gibson wrote:
>
>> <vaughan...@gmail.com> scribbled:
>>
>
>  I have a multi line text file laid out as below.
>>>
>>> 10.10.10.45 bobs
>>> 10.10.10.34 jims
>>> 10.10.10.27 jacks
>>>
>>> I would like to that the 10.10.10.??? and move it to the end of the same
>>> line so the output will look like.
>>>
>>> bobs 10.10.10.45
>>> jims 10.10.10.34
>>> jacks 10.10.10.27
>>>
>>
>> perl -ane 'print join(" ",reverse(@F)),"\n"' file
>>
>
>  perl -anle 'print "@F[1,0]"' file
>
>
perl -plae '$_="@F[1,0]"' file


> --
> Ruud


Scott
-- 
pri...@{[q%@%x5**2^q"
534`!./4(%2`0%2,`(!#+%2l"]};

Reply via email to