{"categories":["UNIX","UNIX-Linux"],"description":"\u3084\u308a\u305f\u3044\u3053\u3068 \u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u969b\u306b cat hoge.txt 1 2 3cat hoge.txt | xargs echo a b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u4f8b\u3048\u3070\u771f\u3093\u4e2d\u3067\u3042\u308b a 1 b a 2 b a 3 b\u3068\u51fa\u529b\u3055\u305b\u308b\u3002 \u74b0\u5883\u60c5\u5831 GNU bash, version 4.4.12 release (x86_64-unknown-cygwin) \u3084\u308a\u65b9 replace-str\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u60f3\u5b9a\u901a\u308a\u306e\u51fa\u529b\u3068\u3067\u304d\u308b\u3002 $ cat hoge.txt | xargs -I % echo a % ba 1 b a 2 b a 3 b\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u5f15\u6570\u3068\u3057\u3066\u51fa\u3059\u5834\u6240\u3092\u64cd\u4f5c\u3067\u304d\u308b\u3002 \u2026","width":"100%","author_name":"mtiit","height":"190","title":"\u3010Bash/Linux\u3011\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3092xargs\u3067\u4efb\u610f\u306e\u5834\u6240\u306b\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20190708/20190708105146.png","provider_name":"Hatena Blog","blog_url":"https://www.mtioutput.com/","url":"https://www.mtioutput.com/entry/xargs-Ioption-tutorial","author_url":"https://blog.hatena.ne.jp/mtiit/","blog_title":"(O+P)ut","type":"rich","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fxargs-Ioption-tutorial\" title=\"\u3010Bash/Linux\u3011\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3092xargs\u3067\u4efb\u610f\u306e\u5834\u6240\u306b\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059 - (O+P)ut\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2021-10-29 15:43:48","provider_url":"https://hatena.blog"}