Beautiful tip to search and replace all occurrences of a string in a given folder.
I had to change it slightly to make it work under OSX so here it is for future reference:
find . -type f -exec sed -i -e ’s/Old/New/g’ {} \;
modern alchemy for joyful living.
October 1st, 2008 — apple, programming, tip
Beautiful tip to search and replace all occurrences of a string in a given folder.
I had to change it slightly to make it work under OSX so here it is for future reference:
find . -type f -exec sed -i -e ’s/Old/New/g’ {} \;
July 14th, 2008 — apple, general, mac
Right. Given the fact that July 31st I’ll have to hand in my company laptop I’ve decided to invest a fair chunk of my last salary to buy a new one. One powerful enough to stand heavy coding sessions and running multiple virtual machines at the same time. One beautiful in design and with a solid OS … alright I bought macbook pro.
For the vast crowds of geeky friends reading this here are the specs:
MacBook Pro 15-inch Glossy WS
2.4GHz Intel Core 2 Duo
4GB 667 DDR2 SDRAM – 2×2GB
200GB Serial ATA @ 7200 rpm
SuperDrive 8x DL
US Keyboard
Oh and I couldn’t resist, I also upgraded my iPod touch to version 2.0 of the software so that I can start downloading all the amazing apps that are coming out at the iTunes App Store.