{"author_url":"https://blog.hatena.ne.jp/mattintosh4/","published":"2013-01-09 10:55:05","categories":["Mac OS X","bash","p7zip","Finder","xz","ShellScript"],"blog_title":"mattintosh note","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmattintosh-note.jp%2Fentry%2F2013%2F01%2F09%2F105505\" title=\"Finder \u3067 XZ \u5f62\u5f0f\u3092\u6271\u3046\uff08p7zip\uff09 - mattintosh note\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","blog_url":"https://mattintosh-note.jp/","image_url":null,"height":"190","author_name":"mattintosh4","title":"Finder \u3067 XZ \u5f62\u5f0f\u3092\u6271\u3046\uff08p7zip\uff09","provider_url":"https://hatena.blog","description":"\u3053\u306e\u524d\u3001XZ Utils \u3092\u4f7f\u3063\u305f\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u4f5c\u3063\u305f\u3051\u3069\u3001--threads \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u306b\u30b9\u30ec\u30c3\u30c9\u6570\u304c\u5897\u3048\u306a\u3044\u306e\u3067\u30de\u30cb\u30e5\u30a2\u30eb\u898b\u76f4\u3057\u305f\u3089\u300c\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u306b\u307e\u3060\u5bfe\u5fdc\u3057\u3066\u306a\u3044\u300d\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067 p7zip \u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002 # mode: stdin while read f do ### compress ### [ -d \"$f\" ] && { tar cfC - \"${f%/*}\" \"${f##*/}\" | 7z a -si \"$f\".tar.xz } ### decompress ### [ -f \"$f\" -a -z \"${f##*.tar.xz}\" ] &\u2026","version":"1.0","type":"rich","url":"https://mattintosh-note.jp/entry/2013/01/09/105505","provider_name":"Hatena Blog"}