perl -ne '$;[$_>99].=$_}{print@' infile.txt > outfile.txt
:)
if no additional sorting is required
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
;ll do the trick :)
-aman.
-Original Message-
From: Alan C. [mailto:acummingAT@;cwnetDOT.com]
Sent: Friday, November 08, 2002 2:53 PM
To: [EMAIL PROTECTED]
Subject: sort two patterns, control structure help needed
Hello,
This must be easy. But I've not yet enough experience with Perl&
On Fri, 8 Nov 2002, Alan C. wrote:
> Hello,
>
> This must be easy. But I've not yet enough experience with Perl's control
> structures.
>
> perl mysort.pl infile.txt > outfile.txt
>
> The stack of numbers with colons below reside within infile.txt
>
> 120:2
> 126:2
> 13:15
> 140:3
> 14:3
> 141
"Alan C." wrote:
>
> Hello,
Hello,
> This must be easy. But I've not yet enough experience with Perl's control
> structures.
>
> perl mysort.pl infile.txt > outfile.txt
>
> The stack of numbers with colons below reside within infile.txt
>
> 120:2
> 126:2
> 13:15
> 140:3
> 14:3
> 141:3
> 14:3
Hello,
This must be easy. But I've not yet enough experience with Perl's control
structures.
perl mysort.pl infile.txt > outfile.txt
The stack of numbers with colons below reside within infile.txt
120:2
126:2
13:15
140:3
14:3
141:3
14:3
15:11
My task or goal is to get each of them lines over i