syntax of a if statement for linux shells scripting if [testA] then code to run if testA true elif [ testB] then code to run if testA false and testB true else code to run if both tests false fi
if you cannot get your head around that and are writing scripts then something like this will help you a great deal. http://courses.cs.vt.edu/~cs2204/summer2003/notes/scripts-i.html -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andreas Kang Sent: 09 June 2005 12:27 To: [email protected] Subject: [hlds_linux] If if if :) DIFF Ok I have a problem. I want my script to check if the email address in my file mail27015 is the same as the variable $4. If it is the same I want the script to jump 2-3 lines down. But if its not the same, just go to the next line in my script. I guess there has something to do with the diff command and if? In basic I want to server.cfg to be copied the folder IF the variable no.4 does NOT match the contain in the mail27015 file. Witch contains an email address. Anyone can help me? :) Med Vennelig hilsen Andreas Kang Sch�yen Teknisk ansvarlig Novanett avd. CS Tlf 41 14 24 48 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.6.6 - Release Date: 08.06.2005 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ***************************************************************************** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods Group Limited or its subsidiaries. Please note that e-mail communications may be monitored. The Registered Office of Littlewoods Group Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Group Limited is 5059352. ***************************************************************************** This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

