how to use ":" as awk field separtor

Posted by user173446 on Stack Overflow See other posts from Stack Overflow or by user173446
Published on 2010-04-09T17:30:51Z Indexed on 2010/04/09 17:33 UTC
Read the original article Hit count: 481

Filed under:
|
|

given following command :

echo "1: " | awk '/1/ -F ":" {print $1}'

why awk outputs :

1: 

© Stack Overflow or respective owner

Related posts about awk

Related posts about bash