How to replace a string in several files

This is a linux/*nix based solution that allows to recursively search and replace a pattern in all the files matching a certain pattern.

find . -iname "file_pattern" -type f -exec sed -i 's/search_pattern/replacement/g' {} \;

file_pattern: The pattern for matching the files to be modified.
search_pattern: The pattern to look for inside the file.
replace_pattern: The text that should replace search_pattern inside the file.

Capture Screen Shots on Snow Leopard

In Mac OS X, you can use simple keyboard shortcuts to do all sorts of things, including capturing images of what’s on your Mac screen. For example, you can take a screen shot of your entire screen by holding down the
">Command
and Shift keys and pressing a 3.

If you hold down the Command and Shift keys and press 4, Mac OS X turns the cursor into crosshairs you can use to select whatever portion of your display you’d like to capture in a screen shot.

Subscribe to Maestro's RSS