Philip Rowlands wrote:
On Mon, 6 Nov 2006, Roberto Piola wrote:
> I was trying to use df in scripts.
>
> Since LVM introduces very long device names, the column with usage% was
> floating, so, I modified a little the df utility, by adding the -q
> switch, that forces a very small output, without header and with just two
> columns (usage % and mount point).
Does the --portabililty option not do what you need?
Cheers,
Phil
I experimented a little with it, but I failed to find a format suitable for my
needs... what I needed was something simple to slice with cut, and even with
-P I got
address@hidden ~]# df -P
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/VolGroup00-LogVol00 67763800 43385020 20936504 68% /
/dev/sda1 101086 26555 69312 28% /boot
while with -q I get:
68% /
28% /boot