Technology and Me

Main menu

Post navigation

Find and Replace text in Linux/OSX

This information is covered in several other blogs, tutorials and etc… but as my google skills tend to send me someplace different every time I search (yes I know bookmarks) I might as well leave it here for my future reference

Find text

grep "what to find" "fileToFind"

Replace text in a file (OSX, notice the empty quotes at the beginning)