Archive for December, 2007
Good reads for the last day of the year!
It’s the last day of 2007, and everyone is busy writing 2008 predictions, or celebrating. Since I am busy celebrating, I will rather point to two good reads for this last day of the year!
- A round up of 2008 predictions by some of the ReadWriteWeb editors
- 10 Google products you forgot about, on LifeHacker
I know, I should include more links.. But we have a year end party in the office, and I want to get back to it
10 Resolutions to boost your business
It’s New Year around. And it’s time to make some new resolutions!
Read an interesting article from Miles Burke on SitePoint about 10 Resolutions to boost your business. All of them are true! Many would be what you already know! But we often miss them in the daily chores!
Here’s a summary:
- Start setting goals.
- Ask a client for a referral.
- Focus on profit, not turnover.
- Learn something new about business.
- Take time for yourself.
- Create products that generate income.
- Delegate effectively.
- Focus on client service.
- Take time to wander the Web.
- Build rock-solid procedures.
Search and Replace Recursively using sed and grep
I have done this so many times, still I find a new problem doing recursive search and replace each time! Here's one small shell script that puts the issues I had on the Mac doing search and replace on a directory recursively.
Save the file as rpl.sh, chmod it 755, and execute it like:
-
./rpl.sh folderContainingFiles/ oldText newText
Does the job for me! This could be done in a single line, I got some ideas of using xargs etc, but all that did not work on my Mac (at least). So resorting to this.
-
#!/bin/sh
-
grep -rl $2 $1 |
-
while read filename
-
do
-
(
-
echo $filename
-
sed "s/$2/$3/g;" $filename> $filename.xx
-
mv $filename.xx $filename
-
)
-
done
And yes, if you are going to use this, take a little time and do some argument checking before passing them around! Unless you think only a God user like you is going to use it!
Men & Women – Thinking and Speaking
Men think to organize their ideas. Women speak their ideas to organize them!
Merry Christmas

