User:Akahk: Difference between revisions

From ICO wiki
Jump to navigationJump to search
(Created page with '#!/bin/bash FILE="$HOME/check_disk_$RANDOM" check_file=$(echo "1" > $FILE) if [ "$?" != "0" ] then echo "Ketas T2is" find $HOME -size +50M rm -f $FILE fi')
 
No edit summary
 
Line 1: Line 1:
<source lang="bash">
#!/bin/bash
#!/bin/bash


Line 11: Line 13:
     rm -f $FILE
     rm -f $FILE
fi
fi
</source>

Latest revision as of 16:08, 16 October 2011

#!/bin/bash

FILE="$HOME/check_disk_$RANDOM"

check_file=$(echo "1" > $FILE)

if [ "$?" != "0" ]
then
    echo "Ketas T2is"
    find $HOME -size +50M
    rm -f $FILE
fi