diff options
Diffstat (limited to 'prefix_header')
-rwxr-xr-x | prefix_header | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/prefix_header b/prefix_header new file mode 100755 index 0000000..f18305e --- /dev/null +++ b/prefix_header @@ -0,0 +1,7 @@ +#! /usr/bin/env bash + +for file in "$@"; do + echo "Processing $file" + cat "LICENSE_HEADER" "$file" >"${file}.LICENSE_HEADER" + mv "${file}.LICENSE_HEADER" "$file" +done |