The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 10-15-2007
gyana_cboy gyana_cboy is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 9
The code what you have written is absolutely correct ...and it is not giving any errors.
i tried with your code by creating the files in my home directory....


Please segregate the do part from the line whre you are putting the semicolon..
can you tell me in which operating system you are working ...(may be it depends upon the o/s)


Try with this it will transfer the file .....
from one directory to another


path=/oracle/ora10gdb/sample
archive=/oracle/ora10gdb/archive
cd $path
echo `pwd`
for file in `ls`
do
mv $file $archive
done