Skip to content

Instantly share code, notes, and snippets.

@dan82840
Created May 3, 2017 01:58
Show Gist options
  • Save dan82840/200fad9412a0bdda2ed6eacb26827f42 to your computer and use it in GitHub Desktop.
Save dan82840/200fad9412a0bdda2ed6eacb26827f42 to your computer and use it in GitHub Desktop.
#!/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