{"id":69947,"date":"2019-05-23T09:05:53","date_gmt":"2019-05-23T00:05:53","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=69947"},"modified":"2019-05-23T09:05:56","modified_gmt":"2019-05-23T00:05:56","slug":"bash-oneliner","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/bash-oneliner\/","title":{"rendered":"Bash-Oneliner - \u77ed\u304f\u3066\u3082\u4fbf\u5229\u306aBash\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/05\/s_20190521_112653.jpg\" alt=\"S 20190521 112653\" title=\"s_20190521_112653.jpg\" border=\"0\" width=\"938\" height=\"548\" \/><\/p>\n<p>Mac\u3084Linux\u306a\u3069\u3001UNIX\u7cfb\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u4eba\u306b\u3068\u3063\u3066bash\u306f\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u5b58\u5728\u3067\u3059\u3002zsh\u3084fish\u3068\u3044\u3063\u305f\u3088\u308a\u591a\u6a5f\u80fd\u306a\u30b7\u30a7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3082\u3001\u5b9f\u8cea\u7684\u306a\u6a19\u6e96\u30b7\u30a7\u30eb\u306ebash\u3092\u7121\u8996\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3068\u3044\u3063\u3066\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/onceupon.github.io\/Bash-Oneliner\/\">Bash-Oneliner<\/a>\u300d\u306f\u305d\u306ebash\u3092\u3088\u308a\u4fbf\u5229\u306b\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc(1\u884c\u3060\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30e0)\u3092\u96c6\u3081\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b5\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>bash\u306e\u4fbf\u5229\u306a\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3084\u30a8\u30a4\u30ea\u30a2\u30b9\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u69cb\u6587\u304b\u3089\u3001\u5404\u7a2e\u57fa\u672c\u7684\u306aUNIX\u30b3\u30de\u30f3\u30c9\u306e\u4fbf\u5229\u306a\u4f7f\u3044\u65b9\u306e\u7d39\u4ecb\u307e\u3067\u3001\u666e\u6bb5bash\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u65b9\u306b\u3068\u3063\u3066\u5fc5\u898b\u306e\u30b5\u30a4\u30c8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Bash\u3092\u3088\u308a\u4fbf\u5229\u306b\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306b<\/h2>\n<p>Bash-Oneliner\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/05\/s_20190521_113620.jpg\" alt=\"S 20190521 113620\" title=\"s_20190521_113620.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4fbf\u5229\u306b\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u5404\u7a2e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3059\u308b\u300cTerminal Tricks\u300d\u3084\u3001\u5909\u6570\u306e\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3059\u308b\u300cVariable\u300d\u304b\u3089\u59cb\u307e\u308a\u3001grep\u3001sed\u3001awk\u3068\u3044\u3063\u305f\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528\u65b9\u6cd5\u306e\u8aac\u660e\u3001\u6761\u4ef6\u3084\u30eb\u30fc\u30d7\u306e\u4f7f\u3044\u65b9\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u4f7f\u7528\u65b9\u6cd5\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u306e\u3001\u305f\u3068\u3048\u3070if\u6587\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/05\/s_20190521_114307.jpg\" alt=\"S 20190521 114307\" title=\"s_20190521_114307.jpg\" border=\"0\" width=\"849\" height=\"384\" \/><\/p>\n<p>\u307e\u305f\u5909\u6570\u306e\u4f7f\u7528\u65b9\u6cd5\u306e\u8aac\u660e\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/05\/s_20190521_114231.jpg\" alt=\"S 20190521 114231\" title=\"s_20190521_114231.jpg\" border=\"0\" width=\"838\" height=\"535\" \/><\/p>\n<p>\u53b3\u5bc6\u306b\u8003\u3048\u308b\u30681\u884c\u306b\u53ce\u307e\u3089\u306a\u3044\u60c5\u5831\u3082\u591a\u6570\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u304a\u304a\u3080\u306d\u7c21\u6f54\u306b\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Bash-Oneliner\u306b\u306fbash\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u899a\u3048\u3066\u304a\u304f\u3068\u4fbf\u5229\u306a\u60c5\u5831\u304c\u591a\u6570\u53ce\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002bash\u4ee5\u5916\u306b\u3082grep\u3084sed\u3001awk\u3001xargs\u3001find\u306a\u3069UNIX\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528\u6cd5\u3082\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001bash\u3092\u3088\u308a\u52b9\u7387\u826f\u304f\u4f7f\u7528\u3057\u305f\u3044\u65b9\u306f\u53c2\u7167\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u3084Linux\u306a\u3069\u3001UNIX\u7cfb\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u4eba\u306b\u3068\u3063\u3066bash\u306f\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u5b58\u5728\u3067\u3059\u3002zsh\u3084fish\u3068\u3044\u3063\u305f\u3088\u308a\u591a\u6a5f\u80fd\u306a\u30b7\u30a7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3082\u3001\u5b9f\u8cea\u7684\u306a\u6a19\u6e96\u30b7\u30a7\u30eb\u306ebash\u3092\u7121\u8996\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":69996,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[1360],"class_list":["post-69947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-bash"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/69947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=69947"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/69947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/69996"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=69947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=69947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=69947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}