A few of Nick's scripts
Most scripts works on most unix flavors, but they are mainly tested under
some recent linux/perl. None of them is especially smart
(and, by sufficently bad abuse, most of them can help you corrupt/destroy
most of your data...), but some friends and students find them useful.
- accenti
fix LaTeX accents according to Italian rules
- add_kink_points
add linearly extrapolated points to kink-looking 2-column data files
- arrange_photo
a nifty tool to organize jpg photos & avi/mpg movies into folders accoding
to EXIF data
- backup
make a backup: to start it automatically every morning at 1:09,
put a line in crontab (edit it by crontab -e) such as:
9 1 * * 2-6 $HOME/bin/backup >> /tmp/backup.log 2>&1
- conversion
converts energy units such as eV, J, cm-1, ...
- convert2html
quick & efficient for converting LaTeX into html;
generate fairly clean and compact html;
useful also for LaTeX to .doc conversion, since MS-Word / ooffice
import html as document
- convertbiblio:
wanna use BibTeX to sort your \bibitem references automatically, but never
quite dared to put them in the wild bibtex style?
- del,
like
rm, but MUCH safer...
- fit:
very handy to go through hundreds of data files with linear fits
- gauss_conv:
convolves a spectrum with a Gaussian of given width
- histogram:
generate the histogram of a 1-column data file
- integral:
minimal effort to get some quick approximation to the truth
- interpolate:
simple linear interpolation of 2-column data file
- latexcontinuo:
Happy LaTeXing in 3 windows: editor + xdvi (or ghostview) + latexcontinuo
(possibly minimized).
See also useful LaTeX info on howto produce good pdf with LaTeX
- peaks:
extract all local maxima of a function (typically a spectrum, or a time
series) given as a 2-column file
- prunedata:
cleunup pointlessly long data files with almost equal points
- rl:
fast remote login (ssh -X), guess-completing the host name from past hints
- replace
string1 string2 file(s): guess what it does... ! On any number of files!
- spectrum
visualizes a line spectrum
out of a list of energies (rather primitive, but contains smart pieces of
code, like the autoscale, better than much professional software)
- squarediff
compute square difference of columns 2,3,...
Useful (together with integral) e.g. to compare quantitatively 2 spectra
- supergrep:
search for simultaneous occurrence of several patterns in many files and
report the matching filenames
- swap,
often better/safer than
mv
- synchronizedisks.
2 PC's, e.g. a desktop and a laptop: make sure the same files are on both
- tabletex:
n columns of data become a formatted LaTeX table, ready to be pasted
into a document
- xyz_skip:
keep only one every n of the frames of a xyz file
Comments / debugging / patches are welcome!