Skip to content

Instantly share code, notes, and snippets.

@skamithi
Created March 25, 2014 15:28
Show Gist options
  • Save skamithi/9764220 to your computer and use it in GitHub Desktop.
Save skamithi/9764220 to your computer and use it in GitHub Desktop.
add a license header to each file in a project.
#!/bin/bash
FILELIST=`find . -regex '\.\/[a-z]+.*'`
for f in $FILELIST; do
cat license.header $f > $f.new
mv $f.new $f
done
###################################################################
# Copyright [Some Company]. All rights reserved.
###################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment