[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Verhalten von 'mv'



On Thu, 13 Feb 2003, Patrick Petermair wrote:
> Ich habe 2 Ordner
> black@voyager:~/test$ ls -l
> drwxr-xr-x   20 black    black        4096 2003-02-13 11:19 destination
> drwxr-xr-x    2 black    black        4096 2003-02-13 11:19 source
>
> black@voyager:~/test$ ls destination/
> acpi  apm  bash_completion.d  cdrecord  exim   gdm  pam.d  perl
> python2.1  alternatives  apt  calendar  emacs  fonts  opt  pango  phoenix
> python2.2
>
> black@voyager:~/test$ ls source/
> pic1.jpg  pic2.jpg  pic3.jpg
>
> black@voyager:~/test$ mv source/*.jpg destination/*
>
> Man beachte den Stern beim Zielverzeichnis.
> Das Resultat verwundert mich dann aber. 'mv' hat ALLE Ordner in
> destination/ in einen einzigen Ordner verschoben:
>
> black@voyager:~/test$ ls destination/
> python2.2

Syntax bei Verschiebungen:
mv <Dateien+Verzeichnisse> Verzeichnis

bei Dir:
mv source/pic1.jpg source/pic2.jpg source/pic3.jpg destination/acpi \
  destination/apm ... destination/phoenix destination/python2.2

Darum wurde alles nach destination/python2.2 verschoben.



Reply to: