convert any awk script to perl directly by using a2p
like
echo '{print $1,$2}' | a2p
Chang Ming Huei wrote:
> Hi all:
>
> I want to use perl to do something like a awk script as following:
>
> cat file.txt | awk '{print $1,$2}'
>
> How can I do it ?
>
--
To unsubscribe
and you just want the numbers, then a tab, then the word.
-Original Message-
From: Chang Ming Huei [mailto:[EMAIL PROTECTED]]
Sent: Sun 6/2/2002 9:10 AM
To: [EMAIL PROTECTED]
Cc:
Subject: about awk 2 perl
Hi all:
I want to use perl to do something like a awk script as following:
cat file.txt | awk '{print $1,$2}'
How can I do it ?