Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 277 Bytes
#!/bin/bash
# http://stackoverflow.com/questions/151677/tool-for-adding-license-headers-to-source-files
DIRECTORY=$*
for i in $DIRECTORY # or whatever other pattern...
do
if ! grep -q MERCHANTABILITY $i
then
cat COPYING $i >$i.new && mv $i.new $i
echo $i
fi
done