github.com/iotexproject/iotex-core@v1.14.1-rc1/misc/scripts/licenseheader.sh (about) 1 #!/bin/bash 2 3 for f in $(du -a . | awk '{print $2}' | grep '\.go$' | grep -v '/vendor/' | grep -v 'test/mock' | grep -v '\.pb.go$' | grep -v 'explorer/idl'); do 4 if !(grep Copyright $f);then 5 cat misc/scripts/license_header.txt $f > $f.new 6 mv $f.new $f 7 fi 8 done