Linux notebook / Awk
Description: Documents various Linux or *nix programs and concepts, including qmail, djbdns, emacs, Perl, hardware, bash, TCP/IP, DNS, etc...
Keywords: find djbdns system dns typical bash less gdb daemontools mirrordir math tables mysql qmail isdn make http ezmlm shell pppd cftp regexps intro awk dhcp test hardware ucspi-tcp apache html perl php3 fetchmail versions emacs email peripherals

Apache Awk Bash C cftp daemontools DHCP djbdns DNS Emacs Email ezmlm Fetchmail find GDB Hardware HTML HTTP Intro ISDN less Make Math mc mirrordir MySQL Peripherals Perl PHP3 pppd qmail Regexps Shell System Tables test To do Typical ucspi-tcp Versions Index TCP/IP slides
Awk |  | top

> awk oneliners

> To print example.txt between the first appearance of foo and the following appearance of bar (both included)
>   awk '/foo/,/bar/' example.txt
> To print the names for all users in the passwd file
>   awk -F: '{ print $1; }' /etc/passwd
> ... and to print all excepting root and ftp
>   awk -F: '!/^(ftp)|(root)/ { print $1; }' /etc/passwd

Links | top

> awk related links

> - AWK page at Bell Labs

Last update: Wed, 2 Nov 2005 10:16:21 GMT | top