Cut question
Luke Davis
ldavis at shellworld.net
Mon Sep 15 01:24:19 EDT 2003
A space, I suppose.
I only know how to do this with awk, which is something you might
consider.
On Sun, 14 Sep 2003, Mike Keithley wrote:
> Hi list
>
> I am trying to write a command to return free disk space so I can use it
> in a script. My most recent attempt is
>
> df `pwd` | grep "/" | cut -f4
>
> Now this returns the entire line from df like:
>
> /dev/sdb2 8609476 3522184 4999820 42% /
>
> What delimiter in cut do I need to pick off field 4?
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
In memory of The Man In Black. His music will live forever!
More information about the Speakup
mailing list