trunky1
Technical User
- Jun 12, 2009
- 6
Hi,
I have a small script I shall make running again... sadly the original programmer is gone long time ago, no chance to contact him, so hop you can help me (never seen AWK before).
its the line of in a CLI PHP script
awk '/"GET \/avs\/.*\.rm.* HTTP\/[1-9]\.[0-9]" 200/ {print $3,$7,$4,$11}' $LOGDIR/access_log >> $DOWNLOAD_FILE.unsorted
where the interpreter say
awk: cmd. line:1: $3,$7,$4,$11}
awk: cmd. line:1: ^ syntax error
script.php: line 26: syntax error near unexpected token `newline'
script.php: line 26: `HTTP\/[1-9]\[0-9]" 200 {print $3,$7,$4,$11}' >>'
Hope someone can help me?
trunky
I have a small script I shall make running again... sadly the original programmer is gone long time ago, no chance to contact him, so hop you can help me (never seen AWK before).
its the line of in a CLI PHP script
awk '/"GET \/avs\/.*\.rm.* HTTP\/[1-9]\.[0-9]" 200/ {print $3,$7,$4,$11}' $LOGDIR/access_log >> $DOWNLOAD_FILE.unsorted
where the interpreter say
awk: cmd. line:1: $3,$7,$4,$11}
awk: cmd. line:1: ^ syntax error
script.php: line 26: syntax error near unexpected token `newline'
script.php: line 26: `HTTP\/[1-9]\[0-9]" 200 {print $3,$7,$4,$11}' >>'
Hope someone can help me?
trunky