awk question, maybe

Fernando Gleiser fgleiser at cactus.fi.uba.ar
Mon Dec 15 15:38:52 PST 2003


On Mon, 15 Dec 2003, David Bear wrote:

> i would like to do something like
>
> df | awk '{print $1}'
>
> to capture all the current file systems.  But I would like to strip
> off the first and last lines, since these are generally -- not needed.

df | awk '$1 ~/^\/dev/ {print $1}'


		Fer




More information about the freebsd-questions mailing list