{"id":102106,"date":"2022-09-06T08:20:55","date_gmt":"2022-09-05T23:20:55","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=102106"},"modified":"2022-09-06T08:20:55","modified_gmt":"2022-09-05T23:20:55","slug":"gnu-grep-3-8-released","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/gnu-grep-3-8-released\/","title":{"rendered":"GNU Grep 3.8\u304c\u30ea\u30ea\u30fc\u30b9 - egrep\u3068fgrep\u4f7f\u7528\u6642\u306b\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2021\/08\/s_20210816_133323.jpg\" alt=\"S 20210816 133323\" title=\"s_20210816_133323.jpg\" border=\"0\" width=\"938\" height=\"601\" \/><\/p>\n<p>GNU\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u30019\u67083\u65e5(\u73fe\u5730\u6642\u9593)\u3001GNU Grep\u306e\u6700\u65b0\u7248v3.8\u3092<a href=\"https:\/\/savannah.gnu.org\/forum\/forum.php?forum_id=10227\">\u30ea\u30ea\u30fc\u30b9<\/a>\u3057\u307e\u3057\u305f(<a href=\"https:\/\/www.phoronix.com\/news\/GNU-Grep-3.8-Stop-egrep-fgrep\">Phoronix<\/a>)\u3002<\/p>\n<p>GNU Grep\u306f\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u691c\u7d22\u30c4\u30fc\u30eb\u300cgrep\u300d\u306eGNU\u306b\u3088\u308b\u5b9f\u88c5\u3067\u3059\u3002v3.8\u3067\u306f\u3001egrep\u3068fgrep\u4f7f\u7528\u6642\u306b\u300cgrep -E\u300d\u3068\u300cgrep -F\u300d\u3092\u4f7f\u7528\u3059\u308b\u3079\u304d\u3068\u3044\u3046\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002egrep\u3068fgrep\u306f2007\u5e74\u304b\u3089\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3059\u3079\u304d\u3067\u306f\u306a\u3044\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3053\u3068\u304c\u3088\u308a\u660e\u78ba\u306b\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>GNU\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u6700\u7d42\u7684\u306begrep\u3068fgrep\u3092\u524a\u9664\u3059\u308b\u4e88\u5b9a\u3067\u3059\u304c\u3001\u305d\u308c\u304c\u3044\u3064\u306b\u306a\u308b\u306e\u304b\u660e\u78ba\u306a\u4e88\u5b9a\u306f\u6c7a\u307e\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>GNU Grep\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u524a\u9664\u8a08\u753b\u306b\u95a2\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8aac\u660e\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\n7th Edition Unix had commands egrep and fgrep that were the counterparts of the modern 'grep -E' and 'grep -F'. Although breaking up grep into three programs was perhaps useful on the small computers of the 1970s, egrep and fgrep were not standardized by POSIX and are no longer needed. In the current GNU implementation, egrep and fgrep issue a warning and then act like their modern counterparts; eventually, they are planned to be removed entirely.<\/p>\n<p>\u7b2c7\u7248 Unix\u306b\u306f\u3001\u73fe\u4ee3\u306e\u300cgrep -E\u300d\u3068\u300cgrep -F\u300d\u306b\u5bfe\u5fdc\u3059\u308begrep\u3068fgrep\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3057\u305f\u3002grep\u30923\u3064\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u306f\u30011970\u5e74\u4ee3\u306e\u5c0f\u578b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u306f\u4fbf\u5229\u3060\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001egrep\u3068fgrep\u306fPOSIX\u3067\u6a19\u6e96\u5316\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u3082\u306f\u3084\u5fc5\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u73fe\u5728\u306eGNU\u306e\u5b9f\u88c5\u3067\u306f\u3001egrep\u3068fgrep\u306f\u8b66\u544a\u3092\u767a\u3057\u3001\u305d\u308c\u304b\u3089\u73fe\u4ee3\u306e\u5bfe\u5fdc\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>If you prefer the old names, you can use use your own substitutes, such as a shell script...<\/p>\n<p>\u3082\u3057\u53e4\u3044\u540d\u524d\u306e\u65b9\u304c\u597d\u304d\u306a\u3089\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u3088\u3046\u306a\u72ec\u81ea\u306e\u4ee3\u7528\u54c1\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059...<\/p>\n<p>#!\/bin\/sh<br \/>\nexec grep -E \"$@@\"<\/p>\n<\/blockquote>\n<p>\u305d\u306e\u4ed6\u3001GREP_COLOR\u306e\u975e\u63a8\u5968\u5316\u3084(GREP_COLOR='xxx'\u306e\u304b\u308f\u308a\u306bGREP_COLORS='mt=xxx'\u3092\u4f7f\u7528\u3059\u308b)\u3001\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u9593\u9055\u3048\u3066\u3044\u308b\u6b63\u898f\u8868\u73fe\u3067\u8b66\u544a\u3092\u8868\u793a\u3059\u308b\u4fee\u6b63\u306a\u3069\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GNU\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u30019\u67083\u65e5(\u73fe\u5730\u6642\u9593)\u3001GNU Grep\u306e\u6700\u65b0\u7248v3.8\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f(Phoronix)\u3002 GNU Grep\u306f\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u691c\u7d22\u30c4\u30fc\u30eb\u300cgrep\u300d\u306eGNU\u306b\u3088\u308b\u5b9f\u88c5\u3067\u3059\u3002v3.8\u3067\u306f\u3001egrep [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":102108,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[353,352],"class_list":["post-102106","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-gnu","tag-grep"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/102106","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=102106"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/102106\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/102108"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=102106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=102106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=102106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}