Skip to content

Instantly share code, notes, and snippets.

@vilbeyli
Created December 5, 2015 04:19
Show Gist options
  • Save vilbeyli/d06983622ffcfee0d463 to your computer and use it in GitHub Desktop.
Save vilbeyli/d06983622ffcfee0d463 to your computer and use it in GitHub Desktop.
bash script for automating diffing outputs of cs525 assignments
#!/bin/sh
for i in `seq 0 $1`
do
./gnu.exe $i > sout$i
done
for i in `seq 0 $1`
do
printf "diff out$i sout$i:\n"
diff out$i sout$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment