{"id":682,"date":"2011-03-31T13:41:49","date_gmt":"2011-03-31T04:41:49","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=682"},"modified":"2025-03-12T11:31:17","modified_gmt":"2025-03-12T02:31:17","slug":"mac-%e3%81%a7%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e4%b8%80%e6%8b%ac%e7%bd%ae%e6%8f%9b%e3%81%a3%e3%81%a6%e3%81%a9%e3%81%86%e3%81%97%e3%81%a6%e3%81%be%e3%81%99%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2011\/03\/31\/mac-%e3%81%a7%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e4%b8%80%e6%8b%ac%e7%bd%ae%e6%8f%9b%e3%81%a3%e3%81%a6%e3%81%a9%e3%81%86%e3%81%97%e3%81%a6%e3%81%be%e3%81%99%ef%bc%9f\/","title":{"rendered":"Mac \u3067\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u62ec\u7f6e\u63db\u3063\u3066\u3069\u3046\u3057\u3066\u307e\u3059\uff1f"},"content":{"rendered":"<p>Windows \u3060\u3068 Devas \u3063\u3066\u30bd\u30d5\u30c8\u3067\u30d0\u30c3\u30c1\u30ea\u3060\u3063\u305f\u3093\u3067\u3059\u304c\u3001Mac \u3067\u306f\u3044\u3044\u30bd\u30d5\u30c8\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u305a\u306b\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u542b\u3081\u3066\u307e\u3068\u3081\u3066\u7f6e\u63db\u306f\u3001\u4eca\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u624b\u9806\u3067\u3084\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001find \u3067\u7279\u5b9a\u62e1\u5f35\u5b50\u306e\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u3092\u3068\u3063\u3066 xargs \u3067 grep \u306b\u308f\u305f\u3057\u3066\u7f6e\u63db\u3057\u305f\u3044\u5358\u8a9e\u3092\u691c\u7d22\u3002<\/p>\n<pre lang=\"Bash\" line=\"1\">\r\n$ find . -name '*.\u62e1\u5f35\u5b50' | xargs grep \u7f6e\u63db\u3057\u305f\u3044\u5358\u8a9e \r\n<\/pre>\n<p>\u3067\u3001grep\u306b -l \u30aa\u30d7\u30b7\u30e7\u30f3\u3064\u3051\u3066\u7f6e\u63db\u3057\u305f\u3044\u5358\u8a9e\u304c\u542b\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u3092\u3068\u3063\u3066 xargs \u3067\u3000 perl \u306b\u308f\u305f\u3057\u3066\u7f6e\u63db\u3002<\/p>\n<pre lang=\"Bash\" line=\"1\">\r\n$ find . -name '*.\u62e1\u5f35\u5b50' | xargs grep -l \u7f6e\u63db\u3057\u305f\u3044\u5358\u8a9e | xargs perl -p -i.bak -e 's\/\u7f6e\u63db\u3057\u305f\u3044\u5358\u8a9e\/\u7f6e\u63db\u5f8c\u306e\u5358\u8a9e\/g'\r\n<\/pre>\n<p>perl \u306e -i  \u30aa\u30d7\u30b7\u30e7\u30f3\u306b .bak \u3068\u4ed8\u3051\u3066\u308b\u306e\u3067\u5143\u30d5\u30a1\u30a4\u30eb\u306f bak \u3068\u3044\u3046\u62e1\u5f35\u5b50\u3067\u6b8b\u308a\u307e\u3059\u3002<br \/>\n\u300cperl\u3060\u3051\u3067\u3084\u308c\u3070\u3044\u3044\u3058\u3083\u3093\u300d\u3068\u8a00\u308f\u308c\u305d\u3046\u3067\u3059\u304c\u3001\u3044\u304d\u306a\u308a\u3084\u308b\u306e\u306f\u4e0d\u5b89\u306a\u306e\u3068\u7f6e\u63db\u304c\u884c\u308f\u308c\u3066\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u307e\u3067\u5168\u3066\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u5909\u308f\u3063\u305f\u308a\u3057\u305f\u306e\u3067\u3053\u306e\u65b9\u6cd5\u306b\u843d\u3061\u7740\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u7f6e\u63db\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u78ba\u8a8d\u3057\u3066\u554f\u984c\u306a\u3051\u308c\u3070bak\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u3002<\/p>\n<pre lang=\"Bash\" line=\"1\">\r\n$ find . -name '*.bak'\r\n<\/pre>\n<p>\u3067\u78ba\u8a8d\u3057\u3066\u3001<\/p>\n<pre lang=\"Bash\" line=\"1\">\r\n$ find . -name '*.bak' | xargs rm\r\n<\/pre>\n<p>\u5b8c\u4e86\u301c\u3002 xargs \u30e9\u30f4\u2661<\/p>\n<p>Unix\u7cfb\u306a\u3089\u4ed6\u3067\u3082\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3044\u3044\u3063\u3061\u3083\u3044\u3044\u3093\u3067\u3059\u304c\u3001\u8a18\u61b6\u529b\u304c\u306a\u3044\u306e\u3067\u601d\u3044\u51fa\u305b\u308b\u6c17\u304c\u3057\u307e\u305b\u3093\u3002history\u304c\u3042\u3075\u308c\u308b\u3068\u30aa\u30ec\u7d42\u4e86\u3063\u3066\u611f\u3058\uff08\u306a\u306e\u3067\u30e1\u30e2\u3068\u3044\u3046\u610f\u5473\u3082\u3042\u308a\uff09\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u79c1\u304c\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4e00\u756a\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u306f\u30d6\u30c3\u30c1\u30ae\u30ea\u3067<\/p>\n<pre lang=\"Bash\" line=\"1\">\r\n$ history | grep \u30b3\u30de\u30f3\u30c9\u540d\r\n<\/pre>\n<p>history \u30e9\u30f4\u2661\u2661<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F682&#038;t=Mac%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B%E3%81%A3%E3%81%A6%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%EF%BC%9F&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F682&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=Mac%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B%E3%81%A3%E3%81%A6%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%EF%BC%9F\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F682&#038;text=Mac%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B%E3%81%A3%E3%81%A6%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%EF%BC%9F\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F682&#038;title=Mac%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B%E3%81%A3%E3%81%A6%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%EF%BC%9F\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=Mac%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B%E3%81%A3%E3%81%A6%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%EF%BC%9F&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F682\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Mac%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B%E3%81%A3%E3%81%A6%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%EF%BC%9F&#038;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F682\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>Windows \u3060\u3068 Devas \u3063\u3066\u30bd\u30d5\u30c8\u3067\u30d0\u30c3\u30c1\u30ea\u3060\u3063\u305f\u3093\u3067\u3059\u304c\u3001Mac \u3067\u306f\u3044\u3044\u30bd\u30d5\u30c8\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u305a\u306b\u3044\u307e\u3059\u3002 \u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u542b\u3081\u3066\u307e\u3068\u3081\u3066\u7f6e\u63db\u306f\u3001\u4eca\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u624b\u9806\u3067\u3084\u3063\u3066\u307e\u3059\u3002 \u307e [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[137,14],"class_list":["post-682","post","type-post","status-publish","format-standard","hentry","category-perl","tag-mac","tag-os-x"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=682"}],"version-history":[{"count":4,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/682\/revisions"}],"predecessor-version":[{"id":686,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/682\/revisions\/686"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}