Last active
December 24, 2016 16:10
-
-
Save acro5piano/6478d0d759ef71a46685330f558f64f1 to your computer and use it in GitHub Desktop.
findした結果をディレクトリ構造そのまま移動 ref: http://qiita.com/acro5piano/items/af5ff58ab3cbc15a7ab3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/file | |
find /path/to/file -regextype posix-extended -regex '.*\.(jpg|png)' -print0 | | |
xars tar cv -T - --null | bash -c 'cd ~; tar x' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/file | |
find /path/to/file -regextype posix-extended -regex '.*\.(jpg|png)' -print0 | | |
xars tar cv -T - --null | bash -c 'cd ~; tar x' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find -name "hoge*" -print0 | xargs -0 tar cvzf hoges.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment