Skip to content

Instantly share code, notes, and snippets.

@marcbln
marcbln / copywriter_php.py
Last active October 27, 2017 11:59 — forked from dokterbob/copywriter.py
Script for automatically prepending copyright notice to a file
#!/usr/bin/env python
#
# original: https://gist.github.com/dokterbob/880378
# 10/2017 updated to work with php files
#
# usage:
# find src/ -name "*.php" -exec shell/copywriter.py some_docheader.txt {} \;
import sys