Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # for file sizes
- # 19456000 = 19GB
- # Random find on hard drive might not work
- SPACE= df -P . | tail -1 | awk 'CHECK=$4';
- S=df -P $PWD | awk 'NR==2{print $4}'
- echo $S;
- #echo $SPACE;
- #SPACE2='100';
- if [ $SPACE -lt '19372299' ]; then
- echo '';
- echo 'We are running out of space under ';
- else
- echo 'we all good on space';
- fi
- exit 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement