Created
May 3, 2017 01:58
-
-
Save dan82840/200fad9412a0bdda2ed6eacb26827f42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
DST=${1:-$PWD} | |
rm -f /tmp/result.txt | |
for i in $(find $DST -name "*"); do | |
file $i >/dev/null 2>&1 | |
if [ $? -eq 0 ]; then | |
echo "$i --> OK" | |
else | |
echo "$i --> NOK" | |
echo "$i --> NOK" >> /tmp/result.txt | |
fi | |
done | |
dmesg -c | grep error | |
echo 3 > /proc/sys/vm/drop_caches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment