bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hepl needed immediately


From: A.Karthik
Subject: hepl needed immediately
Date: Sat, 26 Jan 2002 15:24:25 +0530

Sir,


I have invoked awk script something like this in a cgi script :

$result=`awk -v out=$out '{if(FNR == out) {print \$0}}' /etc/aliases |
cut -d":" -f2`;


It gives me the following error :

Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
        awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options:          GNU long options:
        -f progfile             --file=progfile
        -F fs                   --field-separator=fs
        -v var=val              --assign=var=val
        -m[fr] val
        -W compat               --compat
        -W copyleft             --copyleft
        -W copyright            --copyright
        -W help                 --help
        -W lint                 --lint
        -W lint-old             --lint-old
        -W posix                --posix
        -W re-interval          --re-interval
        -W source=program-text  --source=program-text
        -W traditional          --traditional
        -W usage                --usage
        -W version              --version

Report bugs to address@hidden,
with a Cc: to address@hidden
sh: {if(FNR == out) {print $0}}: command not found


What is wrong with this /

Awaiting for your early reply

Regards
A.Karthik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]