Skip to content

Instantly share code, notes, and snippets.

@ohga
Created December 12, 2017 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohga/b5deedd22a494042f58f1165809f2482 to your computer and use it in GitHub Desktop.
Save ohga/b5deedd22a494042f58f1165809f2482 to your computer and use it in GitHub Desktop.
#!/bin/sh
for file in `ls -1 shufout_*` ; do
size=`wc -c ${file} | awk '{printf("%f",($1/38));}'`
echo -n "check ${file} ${size} .. "
# /path/to/apery check_teacher $file $((`nproc`-1))
/path/to/apery check_teacher $file `nproc`
if [ $? = 0 ]; then
echo "ok"
else
echo "ng.."
exit $?
fi
done
echo "all ok!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment