User Tools

Site Tools


basic_awk

This is an old revision of the document!


The following prints all lines in the file specified. You can also replace $0 with nothing.

awk '{ print $0 }'
The following will only print the first colomn in the file. The -F is the field seperator and is specified with: -F“:”
awk -F":" '{ print $1 }' /etc/passwd

basic_awk.1429957995.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki