Monday, May 23, 2005

Basic usage of awk

I keep forgetting this,so i posted this.This is how you change the the way awk tokenizes...Here I use '/' instead of whitespace

echo "http://www.google.com/test" | awk -F/ '{print $4}'


0 Comments:

Post a Comment

<< Home