Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

AWK oddity

Name: Anonymous 2011-02-26 20:36

For some reason this doesn't work
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.

Name: Anonymous 2011-02-26 20:45

Why the fuck didn't I read the man first?
Nevermind guys, this is now officially a waste of your time.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List