Neko

Category Archives: Tips and Tricks

Renaming files with spaces to dashes

I was just playing with some old disk images of SCO Xenix to try to get it to boot in an emulator.  It was quite frustrating that all of the disk images had spaces in the file names.  A few files would have been ok, but I have multiple version of multiple releases for multiple [...]

Getting rid of all your serial consoles

Get rid of most of your serial terminals with a serial console server.

Automatically Backing Up Your Google Docs

Automatically backup your Google Docs using the Google Data API.

Using command-line Perl to search and replace

One of things I always seem to be doing is searching for strings in files and changing them.   I’ve gotten used to using Sed and VI for this.  But perl also makes it easy to do via the command line.
Consider the following text file:
$ cat resolv.conf
search theunixzone.com
nameserver 10.1.1.1
nameserver 10.1.1.2
nameserver 10.1.1.3
By doing a command similar to [...]