Last Updated: February 25, 2016
·
261
· yachi

Shell: Print any column using awk fast

Add this function to your shell rc file:

aw () {
    awk "{print \$$1}"
}

Usage:

ps | aw 4