Quote:
Originally Posted by
shubhig15
Thanks..I tried to run this code but i found error in mv command like
mv:can not stat `:no such file or directory
As stated earlier, every time it loops through the while condition the move command checks for the sub-directory
FILES/type_2.0_20101208_* and copies the file to
tmp.xml, since you have given the path as
FILES/type_2.0_20101208_${count}.xml/tmp.xml. So unless you have the sub-directory
type_2.0_20101208_* created under directory FILES you will have this error.
Guess you are aware of the directory-tree structure, where except
tmp.xml all the others are directories and sub-directories here..
FILES/type_2.0_20101208_${count}.xml/tmp.xml