ArchLUG Linux By Example - www.archlug.org

Download the RSS XML Feed for this site

Subscribe to this channel with Amphetadesk

Subscribe to this channel with RadioUserland

LBE- awk


Basic awk

To print the first word of each line of a file

awk '{print $1}' filename

If the file is colon delimited, use -F:

awk -F: '{print $1}' /etc/password

Valid XHTML 1.0! Valid CSS!