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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 12-05-2005
ajubi ajubi is offline
Registered User
 

Join Date: Nov 2005
Posts: 3
I am trying something like this..

cd /in # Go to in the folder.
if [ -f "$File.xml"]; then # Check for the file if it exists
mv projects.xml ../program # move the file to program directory
fi
cd ../program # cd to the program directory
run command # run the command.

It throws me a error something like this, Please advise..

file.sh: [: missing `]'

???