On Wed, 8 Jun 2005, Andy Pieters wrote:
Directory structure
+home
+--ogg
| +-- incomming
\--incomming
So I do
cd ~/incomming
mv *.mp3 ../ogg/incomming
Result: mv: when moving multiple files, last argument must be a directory
cp *.mp3 ../ogg/incomming
Result: cp: `../ogg/incomming': specified destination directory does not exist
file ../ogg/incomming
../ogg/incomming: ERROR: cannot open `../ogg/incomming' (No such file or
directory)
WTF?
cd ../ogg/incomming
file .
.: directory
mv ../../incomming/*.mp3 .
Result: ok
Weird isn't it?
No.
A directory that doesn't exist is ../ogg .
From /home/ogg/incomming , .. = /home/ogg .
../ogg/incomming
would be /home/ogg/ogg/incomming .
--
Mike hennebry(a)web.cs.ndsu.NoDak.edu
"There are three kinds of people,
those who can count and those who can't."