Category Archives: computers/programming

beautiful one-liner

ls foo*.jpg | awk ‘{print(“mv “$1” “$1)}’ | sed ‘s/foo/bar/2’ | /bin/sh found [here]

Posted in computers/programming | Leave a comment

Swapping keys with Linux and xmodmap

We’ve had all kinds of Graydon goodness, but I’ve finally solved a pesky problem that is worth documenting for my future reference. My laptop does not have a right CTRL key. I didn’t realize how much I used the right … Continue reading

Posted in computers/programming | Leave a comment

Inserting newlines with AIX sed

The problem: A file needs to have newlines inserted at the end of a record. The current record delimiter is the word “END”. My version of sed doesn’t recognize inserting “n” or “r”. Solution: Use sed and tr sed -e … Continue reading

Posted in computers/programming | Leave a comment

find and archive files older than 90 days

Just another note to myself here- more pics of Gabe are sure to be on the way. Find the log files older than 90 days and gather them up in a compressed archive: find /path/to/my/logs -mtime +90 -name “*.log” | … Continue reading

Posted in computers/programming | Leave a comment

UNIX command line file auditing

I am cleaning out my home directory on one on the UNIX boxes I have an account on and I coming across all sort of little hints I have left myself. Sometimes it is helpful to get an idea of … Continue reading

Posted in computers/programming | Leave a comment

Getting your geek on with find, mv, and xargs

For those folks who didn’t get their full ration of tech-tastic-ness with my opus on getting cedilla’s into an emacs buffer, here is a handy bit about using the UNIX find and mv commands together: The task- find all the … Continue reading

Posted in computers/programming | Leave a comment

Getting ASCII characters above 126 into an emacs buffer

Note: If it wasn’t obvious from the title, there will be no pictures of Gabe in this particular post.

Posted in computers/programming | 1 Comment

Flash, Fedora, Google Analytics

Running [ Fedora Core 5 ] with the [ Flash Plugin for Linux ] and experiencing “missing” text from [ Google Analytics ] or another Flash app? There is a quick less-than-one-minute-fix available:

Posted in computers/programming | 1 Comment

Grep-tastic!

Simple problem: Show me the lines of code in a file that have opening parentheses without closing parentheses. Nested and multiple parens need not be considered. My solution: grep “(” testfile | grep -v “)” Better solution: grep ‘([^)]*$’ testfile

Posted in computers/programming | Leave a comment

UNIX command sytnax hinters

Because I often need a hint… Continue reading

Posted in computers/programming | Leave a comment