It would be helpful to add a --terse option to df such that a user could do something like:

DF=$(df -k --terse --output=used $PWD)

Right now I see no method of omitting the header or to collapse the spaces between values to a single space. This can be done of course with tools like awk, cut, sed, grep, tail, etc, but would be a lot cleaner if done inside df.

  -- Bruce Dubbs
     linuxfromscratch.org

Reply via email to