Skip to content

Instantly share code, notes, and snippets.

@jcfr
Created September 12, 2011 20:20
Show Gist options
  • Save jcfr/1212285 to your computer and use it in GitHub Desktop.
Save jcfr/1212285 to your computer and use it in GitHub Desktop.
license_file=~/Projects/Visomics/NOTICE
while read i;
do
echo "Checking $i"
if ! grep -q Copyright $i
then
echo "=> Updating $i"
cat $license_file $i >$i.new && mv $i.new $i
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment