The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-13-2008
reksab_16 reksab_16 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
if statement help

Hi Gurus,

New to Unix... What does the following if commands do?

if [ ! "$ORACLE_HOME" ]
then
. ${HOME}/.profile
fi

if [ ! "$COMMON_SOURCED" ]
then
. ./.common
fi

Also please give me some tutorials for Unix which I can start with. Also please gimmme examples for shell scripting.

Thanks and Regards,