Wednesday, October 20, 2004

Simple For loop

Using For Loop to find a word in list of files/direcories under a directory and move it to another folder 


for file in `ls -1`; do grep "^From: Postmaster@hdfcbank.com" $file; if
[ $? -eq 0 ];then mv $file /root/work; fi; done

Friday, October 01, 2004

Group email Address in google

Many of my friends tell me that they don’t use Gmail because it do not support grouped email addresses like rediff and yahoo. But actually we can create grouped email addresses in Gmail. This is a very simple hack.

Click on Contacts (left-side menu) and choose Add Contact (top right corner). Enter a name for the group in the Name field. Then in the Primary Email field start inputting the addresses of group members. Here is the trick: leave out the first and last brackets. This is how you should do it (substituting the appropriate email addresses):

Then save the address. Once you save it, you can see that GMail puts a bracket around the list of addresses. You can try it out by clicking on Compose. Next time you want to send a note to this group, just start typing in the group name and the address list will come up as an option.