1

Removing white space in awk

view story
linux-howto

http://www.unix.com – Hi How to remove white space from this input: Code: |blue |  1| |green|  4| |black|  2| I like to search for green and get Code: 4 not Code:   4 How to modify this to work correct: Code: awk -F"|" '/green/ {print $3} (HowTos)