User Tools

Site Tools


using_awk

Using awk

Basic syntax:

awk <search pattern> {<program actions>}

Examples:

svn st | awk '/^\?/ {print $2}'          # print names of unknown svn files
ps -A | awk '{print $1}'                 # print all pids
using_awk.txt · Last modified: 2010/12/03 23:32 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki