On Thu, Jul 22, 2010 at 2:34 AM, Dr.Ruud
> wrote:
> Jim Gibson wrote:
>
>> 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
>>>
> "CD" == C DeRykus writes:
CD> On Jul 21, 3:42 pm, u...@stemsystems.com ("Uri Guttman") wrote:
>>
>> perl -pe 's/(\S+)\s+(\S+)/$2 $1/' file
>>
CD> Since the weather's good for golf...
i was vaguely hinting at golf but i wanted a fairly normal looking
solution as well!
On Jul 21, 3:42 pm, u...@stemsystems.com ("Uri Guttman") wrote:
> > "JG" == Jim Gibson writes:
>
> JG> On 7/21/10 Wed Jul 21, 2010 11:51 AM, "Vaughan Williams"
> JG> scribbled:
>
> >> Hi all,
> >>
> >> I'm hope you all could help me with a very simple question.
> >>
> >> I hav
Jim Gibson wrote:
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
On Jul 21, 12:05 pm, jimsgib...@gmail.com (Jim Gibson) wrote:
> On 7/21/10 Wed Jul 21, 2010 11:51 AM, "Vaughan Williams"
> scribbled:
>
>> ...
>
> > bobs 10.10.10.45
> > jims 10.10.10.34
> > jacks 10.10.10.27
> > .
> > .
>
> perl -ane 'print join(" ",reverse(@F)),"\n"' file
A variant us
> "JG" == Jim Gibson writes:
JG> On 7/21/10 Wed Jul 21, 2010 11:51 AM, "Vaughan Williams"
JG> scribbled:
>> Hi all,
>>
>> I'm hope you all could help me with a very simple question.
>>
>> I have a multi line text file laid out as below.
>>
>> 10.10.10.45 bobs
>> 10.
> "M" == Matt writes:
M> Perl 1: Introduction to Perl
M> http://www.oreillyschool.com/courses/perl1/
M> Online Course, Pricy but very good.
i will second that as i know the author very well. level 2 will be out
pretty soon. there will be 4 levels at least. these are not kiddie
tutoria
On Wednesday 21 Jul 2010 22:16:38 Vaughan Williams wrote:
> Hi Uri, Jim,
>
> Thanks for the help, it is a very small file some 8kB in size.
>
> Jim's supplied command worked perfectly, although I really do not
> understand it being a 1 day old perl "want-a-be" LOL
>
> I guess have allot of learn
> I guess have allot of learning to do, can anyone suggest a good starting
> point books or online courses for true newbies.
Learning Perl, Fifth Edition
http://oreilly.com/catalog/9780596520113/
Best beginning Perl book. Perl Cookbook is great for examples as well.
Perl 1: Introduction to Perl
Hi Uri, Jim,
Thanks for the help, it is a very small file some 8kB in size.
Jim's supplied command worked perfectly, although I really do not
understand it being a 1 day old perl "want-a-be" LOL
I guess have allot of learning to do, can anyone suggest a good starting
point books or online course
> "VW" == Vaughan Williams writes:
VW> Hi all,
VW> I'm hope you all could help me with a very simple question.
VW> I have a multi line text file laid out as below.
VW> 10.10.10.45 bobs
VW> 10.10.10.34 jims
VW> 10.10.10.27 jacks
VW> .
VW> .
VW> I would like to that
On 7/21/10 Wed Jul 21, 2010 11:51 AM, "Vaughan Williams"
scribbled:
> Hi all,
>
> I'm hope you all could help me with a very simple question.
>
> 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
Hi all,
I'm hope you all could help me with a very simple question.
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
Robert Mark White wrote at Fri, 22 Aug 2003 23:37:48 -0600:
> I see the "#!/usr/bin/perl -w" at the top of all programs.
> I have read it tells perl where to run the program.
No, it usually tells the (*nix) shell what program has to start
- in this case /usr/bin/perl - and with what kind of argum
OK, now don't laugh so hard you fall off your chairs!
I see the "#!/usr/bin/perl -w" at the top of all programs.
I have read it tells perl where to run the program.
This information I assume refers to a *nix box directory structure.
I am using windows and using activeperl
I think that it may mean
15 matches
Mail list logo