The UNIX and Linux Forums  

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




Thread: Shell Noob
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-31-2007
Shell_Life's Avatar
Shell_Life Shell_Life is offline
Registered User
  
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Sax,
The "find" statement is to loop through all the "accuNNN" directories,
NOT the "accu*old".
Display the "mNewDir" right after the "do" to see what value you are getting:

Code:
echo "mNewDir = <"${mNewDir}">"

Also, I wrote the shell in ksh -- are you using the same?