V
Vahid
Hi,
I have the following code:
#!/bin/perl -w
#
open(myFILE, "| awk -F: 's[$1]++==0' "); # this line does not work
# open(myFILE, "| sort -t : -nu -k 3,3"); # this line works fine
open(DB, "passwd");
while (<DB>) { print myFILE; }
close(myFILE);
When I run it, I get this error:
Use of uninitialized value in concatenation (.) or string at
../perl_awk.pl line 3.
awk: syntax error near line 1
awk: bailing out near line 1
Can someone help me debug this if possible?
Thanks.
I have the following code:
#!/bin/perl -w
#
open(myFILE, "| awk -F: 's[$1]++==0' "); # this line does not work
# open(myFILE, "| sort -t : -nu -k 3,3"); # this line works fine
open(DB, "passwd");
while (<DB>) { print myFILE; }
close(myFILE);
When I run it, I get this error:
Use of uninitialized value in concatenation (.) or string at
../perl_awk.pl line 3.
awk: syntax error near line 1
awk: bailing out near line 1
Can someone help me debug this if possible?
Thanks.