March 3rd, 2009 by Geoffrey Hing | View Comments
There are some interesting backup tools for system backups (Time Machine) but I want to just be able to copy and verify a directory (and its children). I’ve heard that the commercial product Retrospect provides copy and verify functionality, but I’m cheap. This is the method that I used. I’d be interested on hearing feedback [...]
August 18th, 2008 by Geoffrey Hing | View Comments
This is old news to a lot of folks, but new and powerful to me. Search for text in files and move matching files $ grep –files-with-matches –null foo * | xargs –null -I xxx mv xxx dir_for_foos/ The above command searches for the string foo in all files in the current subdirectory. It then [...]
November 29th, 2007 by Geoffrey Hing | View Comments
I’ve been using the unix screen command a lot lately, and enough to want to learn more. I used to just scroll through windows with CTRL-a n and CTRL-a p, but now I have a ton of windows in my screen session, so I want to be able to navigate easier. List to windows: CTRL-a [...]