Technical Support

This is a brief list of technical obstacles that I've had to overcome with various hardware and software packages.

One-Liners

Here is a place where I post some of my more creative and useful UNIX one-liners.

List a directory of Software Tarballs, Module Name Only

ls -1 ${dirname}|> | sed 's/\-[0-9.]\+tar.*$//'

This will only work if your filenames fit the following format: ${MODULENAME}-${VERSION}.tar${SUFFIX}. Furthermore, the version must be dot-delimited and the ${SUFFIX} can be any length (or empty). Luckily, this is the most common package naming format in use for open source software distributions.

Fix a List of Node Names for Graphviz

awk '/-/ { print "\x22" $1 "\x22;"; }; /^[^\-]+$/ { print $1 ";" ; };'

I like GraphViz. Since Graphviz uses a number of common characters for it's formatting language, you cannot use these as bareword names in your graphviz code. You must enclose the offending names in quotation marks. The above code will process the long list of words that you wish to ”graphvizify” and make them parseable by the graphviz software (such as dot).

 
techhelp.txt · Last modified: 2007-11-05 by cokane
 
Recent changes RSS feed