14 lines
307 B
Bash
Executable File
14 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
case "$2" in
|
|
available)
|
|
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $4}')
|
|
;;
|
|
usage)
|
|
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $3}')
|
|
;;
|
|
percent)
|
|
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $5}' | tr -d "%")
|
|
;;
|
|
esac
|