10-12-2007
15,
0
Join Date: Aug 2007
Last Activity: 11 October 2007, 11:51 PM EDT
Posts: 15
Thanks Given: 0
Thanked 0 Times in 0 Posts
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