awk multiple delimiters including SPACE or TAB

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

awk multiple delimiters including SPACE or TAB

miketango
 how can I add SPACE or TAB to the list of delimiters shown below?
I use gawk under debian linux.
gawk -F '[-.]' -f ...
Reply | Threaded
Open this post in threaded view
|

Re: awk multiple delimiters including SPACE or TAB

Guru
Administrator
You can use it like this:

awk -F "[ ,\t]"  ....

(Inside brackets, a space followed by a comma followed by a \t which is a tab)

  But along with whitespace(space and tab), if you use some other characters as well as delimiter, be careful, it can get messy.