Script help

Hi,

I have written a script to move the files from child directory to parent directory. The command runs successfully at the command line. But it is giving error while executing the script.

#!/bin/sh
SDIR=/var/tmp/data
DDIR=/var/tmp/data/new

cd $SDIR
mv $DDIR/*.* $SDIR
#Deleting the Destination Directory
rm -r $DDIR

output
------
mv: /var/tmp/data/new/*.* cannot be used.

Please help me.. Its very urgent

try this line:
mv $DDIR/* $SDIR

hth,
DN2