I am trying to figure out how multiple mv commnads in a script work. I have a folder which has log, result and tmp folders. This is also where I wrote a shell script(make_move.csh) with the following commands
#!/bin/csh -f
set DN=$1
#mkdir FOLDER1/$DN
mv ./log ./FOLDER1/$DN
mv ./result ./FOLDER1/$DN
mv ./tmp ./FOLDER1/$DN
When I execute this script
csh make_move.csh 50_1000error
I see the contents of "log" get copied to FOLDER1/50_1000error, and the entire folder of result and tmp get copied over. The intention is to have FOLDER1/50_1000error have the three folders instead of 2 folders and content on 1.
I am not sure what I am missing, or why the firts mv command works differently then the second and third.