OSX Terminal Niceties for Remote Servers

I have absolutely no idea what to title this as — and frankly, its more for me than anyone else. I need a place to store this before I forget and go racking my brain 2 years from now on how to do this.
If you think you’re interested — this post is about the following:

How [...]

More



Prepend files in OS X using the Command Line

This is a neat little “trick” to prepend something simple to the beginning of a file. Linux is funny in the way that you can easily append to a file by using echo “append me to the file” >> FILE but theres no real simple way to prepend. Most snippets I’ve seen use a tmp [...]

More



Making find and tar play nicely

Because I’ll forget #1023
Problem
Use Linux’s “find” command to hunt recursively through the current directory tree and find all matching files. While this is simple enough, I’m an idiot and tend to delete important files when drinking working too much — which we all know sucks. It would be nice to have it take all found [...]

More