Thread: syntax for mail
View Single Post

  #1 (permalink)  
Old 02-05-2008, 05:30 AM
pansarevai pansarevai is offline
Member
User
 
Join Date: Jan 2008
My distro: Debian/Redhat
Posts: 39
Rep Power: 0
pansarevai is on a distinguished road
Default syntax for mail

Hi ,

I am trying to write a script , in which I want to use if else statement.I have check both the parts but to connectiing them I want to add a syntax in between. My script is as follows , kindly suggest me the correct syntax for it.

if [ mailfrom = *@domain.com ]
then
...
..

else
...

What syntax I can use here so as to complete this script mailfrom = *@domain.com.

Regards
Vaibhav
Reply With Quote