Posts linux awk filter using pattern1 or pattern2
Post
Cancel

linux awk filter using pattern1 or pattern2

  • Use pipeto add multiple filter
1
2
3
$ echo "1a2b3a" | awk -F 'a|b' '{print $1 " " $2 " " $3}'

1 2 3
This post is licensed under CC BY 4.0 by the author.