[lug] awk question
Bear Giles
bgiles at coyotesong.com
Mon Jan 27 14:51:10 MST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joseph McDonald wrote:
| Perhaps I'm missing something here:
|
| nemo at otho.scare:[~]:% cat test.txt
| "one","two","three,four","five"
|
| nemo at otho.scare:[~]:% cat test.txt | awk -F\",\" '{print $3}'
| three,four
Sure, but '{print $1}' gives you
"one
and '{print $4}' gives you
five"
which is probably not what you want.
Bear
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+NanOmr0uXf8FxOURAnbnAJ9gxbZCIzlg+a/+okBj6scKqD1B4QCfWxou
yX4kOPw28mKsaypeyH/niSY=
=J6R9
-----END PGP SIGNATURE-----
More information about the LUG
mailing list