В 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 /path/to/dst

This example correctly preserve directory structure and process
files/dirs with spaces in names.

-- 
WBR, Andrey Tataranovich
_______________________________________________
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc

Reply via email to