zeek/aux/broctl/bin/helpers/df.in
Robin Sommer 2b6ad76bd5 Creating a branch release/1.5 with the current 1.5.3 release code.
This is so that people working from the current stable version can
still start using git.
2011-03-09 15:26:01 -08:00

11 lines
256 B
Bash
Executable file

#! /usr/bin/env bash
#
# $Id: df.in 6811 2009-07-06 20:41:10Z robin $
#
# df <path>
#
# Returns: <fs> <fs-size> <fs-used> <fs-avail>
echo 0
df -kP $1 | awk '{print $1, $2, $3, $4}' | tail -1 | awk -v def_factor=1024 -f ${helperdir}/to-bytes.awk
echo ~~~