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 -->
  #2 (permalink)  
Old 05-26-2009
JerryHone JerryHone is offline
Registered User
  
 

Join Date: Nov 2006
Location: UK
Posts: 178
Code:
cd $InputDirectory
for file in *_original.shp
do
    base=`basename $file _original.shp`
    if [ -e  ${base}_Update.shp ] 
    then
        *runs translation
    fi
done