Skip to content

Instantly share code, notes, and snippets.

@cschep
Created July 13, 2015 20:51
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 cschep/a1d2ff3ecbbda4915be6 to your computer and use it in GitHub Desktop.
Save cschep/a1d2ff3ecbbda4915be6 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
if [ ! -f $2 ]; then
touch $2
fi
echo $1 >> $2
cat names.txt |
while read name; do
clear
echo "***" $name "***"
git checkout origin/$name --quiet
echo "$name|3|3|3|" >> $2
# vim -O $1 ~/hackreactor/grading/metric.self-assessment/problems/$1 < /dev/tty > /dev/tty
vim -c ":30split ~/hackreactor/grading/metric.self-assessment/problems/$1" -c ":vsplit $1" + $2 < /dev/tty > /dev/tty
# read confirm < /dev/tty
# echo $name|$confirm >> $2
git co $1 --quiet
done
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment