Bash ~ Perl ~ Python ~ Batch ~ Ruby
Sunday, 29 September 2013
Finding match group in awk
ifconfig | awk --re-interval 'match($0,/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/,ar) {print ar[0]}'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment