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