Small scripts

Short scripts that may be useful for others, but don't deserve to be called projects.

prepend.py

Wrote to a friend stuck with Windows to attach license information to files. With prepend.py you can insert text from file to other files recursively and using * wildcard etc. prepend.py --help should explain the usage.

Usage: Add text to files.

Usage: prepend.py [options] files...

Options:
  -h, --help            show this help message and exit
  -v, --verbose         be verbose about operation
  -i, --inplace         change files in-place
  -r, --recursive       search files recursively
  -t TEXT, --text=TEXT  text to add
  -f FILE, --file=FILE  add text from file
  -s SUFFIX, --suffix=SUFFIX
                        save new files using suffix (default .new)
  -l LOCATION, --location=LOCATION
                        where to place text (begin/end/line:5)