This program replaces text chunks, matched using regular expressions, in the given files.
sustituye --old="(Plinio The Elder)" --new="Plinio The Younger (not \1)" | Changes all appearances of "Plinio The Elder" to "Plinio The Younger (not Plinio The Elder)". |
The file name is "sustituye" (Spanish for "substitute").
The licence for this program is the GNU General Public Licence (GPL).
Package the directory contents to a "tar" file compressed with bzip2 or gzip, and named as "directory_yyyymmdd_hhmm.tbz2" (.tgz for gzip), where "directory" is the directory name given, "yyyymmdd" is the current date, and "hhmm" is the current time. The archive file permissions are set to 440 (not writable) to make accidental deletion a bit more difficult.
The file name is "snapshot".
The licence for this program is the GNU General Public Licence (GPL).
In the issue 44 of the Linux Gazette, Dr. Warren MacEvoy presented a text pre-processor called "perlpp", written in Perl. After using it for a while, I wrote my own version in Python, which is the one I use since then.
The file name is "pythonpp.py". I use it as a library, calling it from a file named "pythonpp" that contains the following:
#! /usr/bin/env python from pythonpp import * main()
This way, the library gets compiled in the file "pythonpp.pyc", and loads faster.
The licence for this program is the GNU General Public Licence (GPL).