My aim is checking if there is still enough space on my disk, every time my script (bash) proceeds a step.
Running df; echo $?
prints:
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sdc4 1869858440 1680951776 93900284 95% /mnt/dd
0
The 0 is the result of that command.
In my case, I only want 93900284
in a variable or as the result.
I already read man df
.