Name: Anonymous 2011-02-26 20:36
For some reason this doesn't work
But this does for some reason
Whenever I use the first one it gives a syntax error at each : and says that @ is an invalid char in the expression.
The file it's pointing to is a crappy plain text database of names, addresses, phone numbers and email addresses in that order and separated by colons.
I'd like to get the first one to work because the second one just looks silly to me.
awk -f "$1" -F ":" -v value="$3" '($1 == value) {print $0}But this does for some reason
cat "$1" | awk -F ":" -v value="$3" '($1 == value) {print $0}Whenever I use the first one it gives a syntax error at each : and says that @ is an invalid char in the expression.
The file it's pointing to is a crappy plain text database of names, addresses, phone numbers and email addresses in that order and separated by colons.
I'd like to get the first one to work because the second one just looks silly to me.