Search Results

Search: Posts Made By: krolike
3,345
Posted By Scott
I think you're doing great :) There's a...
I think you're doing great :)

There's a couple of things.


for dspace in `df -k /filesystem |tail -1 |awk '{print $1}'`

Your df here takes the last line (tail -1) and prints the first field...
3,345
Posted By Scott
-s is not an option to df (there's nothing to...
-s is not an option to df (there's nothing to summarise).

Your script also expects two arguments (call them $1 and $2), and you need to make sense of the df output to get what you need.


if [...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy