I am looking to make a backup to a remote drive, but I want to do a check prior to doing so.
Is it possible to snatch only the "Available" space from the df output, rather than all of the details, to compare to the size of the dump?
I had to change it to $print 4, but that is exactly what was needed. Thank you so much.
df -P <mountpoint>
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago