problem with awk script

Posted by Samantha on Stack Overflow See other posts from Stack Overflow or by Samantha
Published on 2010-03-10T16:10:12Z Indexed on 2010/03/13 21:55 UTC
Read the original article Hit count: 580

Filed under:
|

Hello,

when I call my awk script, I keep getting an error :

sam@sam-laptop:~/shell/td4$ awk -f agenda.awk -- -n Robert agenda.txt
awk: agenda.awk:6: printf "Hello"
awk: agenda.awk:6: ^ syntax error

the script contains this :

#!/usr/bin/awk
BEGIN {
}

printf "Hello"

END {
}

Thank you

© Stack Overflow or respective owner

Related posts about awk

Related posts about shell