Re: Bash Script to move Files

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

 



> Thom Paine wrote:
[...]
> 
> find . -name '*.ogg' -exec mv {} /media/oggs \;
> 
[..]
> It won't move anything repeatedly, but it'll over write files with the 
> same name.  It'll also move directories, if their name ends in ".ogg"

It will not move directories if it's written like this:

  find . -name '*.ogg' -type f -exec mv {} /media/oggs \;

;-)

--Marcin


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux