Advertisement
phuongnx

C5_5

Jun 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2. df -h | awk '$5 != "Use" {print $1,$5}' | sed 's/%//g' | while read output
  3. do
  4.         array=($output)
  5.         if (( ${array[1]} >= 90 ))
  6.         then
  7.                 echo ${array[0]} "da su dung" ${array[1]} "%"
  8.         fi
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement