Re: Specifying multiple separators via FS or the -F command line flag
[email protected] (Bob Proulx)
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Message-ID | <[email protected]> |
Bob Proulx wrote:
> line=' lo:649004371 349860 0 0 0 0 0'
> echo "$line" | awk '{sub(/(eth[[:digit:]]|lo):/,"& ");print $2}'
> 673423996
Sorry for the cut-n-paste error. But regardless of the error I am
sure you get the idea.
Bob