Re: move/copy file by extension preserving directories hierarchy.

2014-10-23 Thread Andrey Tataranovich
В Wed, 22 Oct 2014 17:07:19 -0700 Mike Smithson mdooli...@gmail.com пишет: tar cvf test.tar $(find /path/to/dir -name '*.png') then move the test.tar where you want, and un-tar it. I suggest following example: cd /path/to/src find -name '*.png' -print0 | tar -cf- --null -T- | \ tar -xf- -C

move/copy file by extension preserving directories hierarchy.

2014-10-22 Thread tizio incognito
I don't know if it has benn already asked, but it could be a nice feature the possibility to move/copy files recursively by extension preserving the directory structure. I'll better explain by an example: src dir | +- sub dir 1 | +- file1.png | +- file1.jpeg | +- sub dir 2 +-

Re: move/copy file by extension preserving directories hierarchy.

2014-10-22 Thread Mike Smithson
On Wed, 22 Oct 2014 15:25:27 -0700, tizio incognito jeeg...@yahoo.it wrote: I don't know if it has benn already asked, but it could be a nice feature the possibility to move/copy files recursively by extension preserving the directory structure. I'll better explain by an example: src