Shell: Print any column using awk fast
Add this function to your shell rc file:
aw () {
awk "{print \$$1}"
}
Usage:
ps | aw 4
Written by yachi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Fish
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#