Archive for the ‘*nix’ Category

If you ever need to search a configuration file (or any other kind of file for that matter) for a parameter in order to replace the value, you can use `sed`.  For example, if there was an entry of Host=a.b.c.d But you want to replace it with: Host=a.b.c.e Instead of opening the file, finding the [...]

Tuesday, July 14th, 2009 at 15:44 | 1 comment
Categories: *nix

I was on a quest to find a way to test the length of ssh public keys to ensure they all meet our requirements.  Because we have several users with keys, I needed to write a script to make things far quicker.  After searching google and manpages, I found a combination of `ssh-keygen` and `awk` [...]

Wednesday, July 8th, 2009 at 15:48 | 0 comments
Categories: *nix

I’ve run across the problem every so often where I need to delete a lot of folders at various directory depths on my OS X system. For example, I recently wanted to quickly clear out all my “.svn” folders in a working copy I had. Well, you can’t search hidden folders with Spotlight, so it [...]

Wednesday, May 27th, 2009 at 21:28 | 1 comment
Categories: Mac OS X
TOP