{"id":12511,"date":"2023-12-31T06:55:11","date_gmt":"2023-12-31T03:25:11","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/"},"modified":"2023-12-31T06:55:11","modified_gmt":"2023-12-31T03:25:11","slug":"%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/","title":{"rendered":"\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Regex \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 awk"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%da%a9%d8%a7%d8%b1%d8%a7%da%a9%d8%aa%d8%b1%d9%87%d8%a7%db%8c_%d8%a7%d8%b3%d8%a7%d8%b3%db%8c_%d9%85%d9%88%d8%b1%d8%af_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%af%d8%b1_%d8%a7%d9%84%da%af%d9%88%d9%87%d8%a7\" >\u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc \u0627\u0633\u0627\u0633\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0627\u0644\u06af\u0648\u0647\u0627<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%db%8c%da%a9_%d9%81%d8%a7%db%8c%d9%84_%d8%a7%db%8c%d8%ac%d8%a7%d8%af_%da%a9%d9%86%db%8c%d8%af\" >\u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_1_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%da%a9%d9%84%d8%a7%d8%b3_%da%a9%d8%a7%d8%b1%d8%a7%da%a9%d8%aa%d8%b1_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 1: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0644\u0627\u0633 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_2_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d9%86%d9%85%d8%a7%d8%af_%e2%80%98_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 2: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8216;^&#8217; \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_3_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_gsub_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 3: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 gsub \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_4_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%b1%d8%a7_%d8%a8%d8%a7_%e2%80%9c%e2%80%9d_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 4: \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u0631\u0627 \u0628\u0627 &#8220;*&#8221; \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_5_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d9%86%d9%85%d8%a7%d8%af_%e2%80%98_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 5: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8216;$&#8217; \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_6_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%b1%d8%a7_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%e2%80%98_%d9%88_%e2%80%98_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af_%d9%86%d9%85%d8%a7%d8%af%d9%87%d8%a7\" >\u0645\u062b\u0627\u0644 6: \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 &#8216;^&#8217; \u0648 &#8216;|&#8217; \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f.  \u0646\u0645\u0627\u062f\u0647\u0627<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_7_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d9%86%d9%85%d8%a7%d8%af_%e2%80%98_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 7: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8216;+&#8217; \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%85%d8%ab%d8%a7%d9%84_8_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_gsub_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\" >\u0645\u062b\u0627\u0644 8: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 gsub () \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%a8%d8%a7-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-awk\/#%d9%86%d8%aa%db%8c%d8%ac%d9%87\" >\u0646\u062a\u06cc\u062c\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div id=\"wpbody\">\n<p>\u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 (regex) \u0628\u0631\u0627\u06cc \u06cc\u0627\u0641\u062a\u0646 \u06cc\u06a9 \u062f\u0646\u0628\u0627\u0644\u0647 \u0645\u0639\u06cc\u0646 \u0627\u0632 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0627\u0644\u06af\u0648 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0632 \u0646\u0645\u0627\u062f\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u062d\u0631\u0648\u0641\u060c \u0627\u0631\u0642\u0627\u0645 \u0648 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc \u062e\u0627\u0635 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.  \u06a9\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0631\u062f.  \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 awk \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%da%a9%d8%a7%d8%b1%d8%a7%da%a9%d8%aa%d8%b1%d9%87%d8%a7%db%8c_%d8%a7%d8%b3%d8%a7%d8%b3%db%8c_%d9%85%d9%88%d8%b1%d8%af_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%af%d8%b1_%d8%a7%d9%84%da%af%d9%88%d9%87%d8%a7\"><\/span>\u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc \u0627\u0633\u0627\u0633\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0627\u0644\u06af\u0648\u0647\u0627<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.  \u0646\u0648\u06cc\u0633\u0647 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u06cc\u0634\u062a\u0631 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f \u062f\u0631 \u0632\u06cc\u0631 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0646\u062f.<\/p>\n<div id=\"lhtable\">\n<table>\n<tbody>\n<tr>\n<th>\u0634\u062e\u0635\u06cc\u062a<\/th>\n<th>\u0634\u0631\u062d<\/th>\n<\/tr>\n<tr>\n<td>.<\/td>\n<td>\u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u062f\u0646 \u0647\u0631 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u06cc \u0628\u062f\u0648\u0646 \u062e\u0637 \u062c\u062f\u06cc\u062f (\\n)<\/td>\n<\/tr>\n<tr>\n<td>\\<\/td>\n<td>\u0646\u0642\u0644 \u0642\u0648\u0644 \u06cc\u06a9 \u0645\u062a\u0627 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u062c\u062f\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>^<\/td>\n<td>\u0627\u0628\u062a\u062f\u0627\u06cc \u06cc\u06a9 \u062e\u0637 \u0631\u0627 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>$<\/td>\n<td>\u0627\u0646\u062a\u0647\u0627\u06cc \u06cc\u06a9 \u062e\u0637 \u0631\u0627 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>|<\/td>\n<td>\u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>()<\/td>\n<td>\u06cc\u06a9 \u06af\u0631\u0648\u0647 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>[]<\/td>\n<td>\u06cc\u06a9 \u06a9\u0644\u0627\u0633 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>\\w<\/td>\n<td>\u0628\u0627 \u0647\u0631 \u06a9\u0644\u0645\u0647 \u0627\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>\\s<\/td>\n<td>\u0628\u0627 \u0647\u0631 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0641\u0636\u0627\u06cc \u0633\u0641\u06cc\u062f \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>\\d<\/td>\n<td>\u0628\u0627 \u0647\u0631 \u0631\u0642\u0645\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f<\/td>\n<\/tr>\n<tr>\n<td>\\b<\/td>\n<td>\u0647\u0631 \u0645\u0631\u0632 \u06a9\u0644\u0645\u0647 \u0631\u0627 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0647\u06cc\u062f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"%db%8c%da%a9_%d9%81%d8%a7%db%8c%d9%84_%d8%a7%db%8c%d8%ac%d8%a7%d8%af_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0631\u0627\u06cc \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0645\u062a\u0646\u06cc \u0628\u0627 \u0646\u0627\u0645 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f <strong>products.txt<\/strong>.  \u0641\u0627\u06cc\u0644 \u0628\u0627\u06cc\u062f \u062f\u0627\u0631\u0627\u06cc \u0686\u0647\u0627\u0631 \u0641\u06cc\u0644\u062f \u0628\u0627\u0634\u062f: \u0634\u0646\u0627\u0633\u0647\u060c \u0646\u0627\u0645\u060c \u0646\u0648\u0639 \u0648 \u0642\u06cc\u0645\u062a.<\/p>\n<p>\u0634\u0646\u0627\u0633\u0647 \u0646\u0627\u0645 \u0646\u0648\u0639 \u0642\u06cc\u0645\u062a<\/p>\n<p>\u0645\u0627\u0646\u06cc\u062a\u0648\u0631 15 \u0627\u06cc\u0646\u0686\u06cc p1001 100 \u062f\u0644\u0627\u0631<\/p>\n<p>\u0645\u0648\u0633 p1002 A4tech 10 \u062f\u0644\u0627\u0631<\/p>\n<p>\u067e\u0631\u06cc\u0646\u062a\u0631 \u0633\u0627\u0645\u0633\u0648\u0646\u06af p1003 50 \u062f\u0644\u0627\u0631<\/p>\n<p>p1004 \u0627\u0633\u06a9\u0646\u0631 HP 60 \u062f\u0644\u0627\u0631<\/p>\n<p>p1005 \u0645\u0627\u0648\u0633 \u0644\u0627\u062c\u06cc\u062a\u06a9 15 \u062f\u0644\u0627\u0631<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_1_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%da%a9%d9%84%d8%a7%d8%b3_%da%a9%d8%a7%d8%b1%d8%a7%da%a9%d8%aa%d8%b1_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 1: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0644\u0627\u0633 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0633\u062a\u0648\u0631 awk \u0632\u06cc\u0631 \u0639\u0628\u0627\u0631\u062a \u0648 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f print \u062e\u0637\u0648\u0637 \u062d\u0627\u0648\u06cc \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 &#8216;n&#8217; \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc &#8216;er&#8217;.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;\/[n][er]\/ {print $0}<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u062e\u0631\u0648\u062c\u06cc \u062e\u0637\u06cc \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0627 \u0627\u0644\u06af\u0648 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f.  \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u0641\u0642\u0637 \u06cc\u06a9 \u062e\u0637 \u0628\u0627 \u0627\u0644\u06af\u0648 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f.<\/p>\n<p><img decoding=\"async\" fetchpriority=\"high\" class=\"alignnone size-full wp-image-78974\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"725\" height=\"187\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 725w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image4-1-300x77.jpg 300w\" sizes=\"(max-width: 725px) 100vw, 725px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_2_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d9%86%d9%85%d8%a7%d8%af_%e2%80%98_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 2: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8216;^&#8217; \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0633\u062a\u0648\u0631 awk \u0632\u06cc\u0631 \u0639\u0628\u0627\u0631\u062a \u0648 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f print \u062e\u0637\u0648\u0637\u06cc \u06a9\u0647 \u0628\u0627 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 &#8216;p&#8217; \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u0646\u062f \u0648 \u0634\u0627\u0645\u0644 \u0639\u062f\u062f 3 \u0645\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;\/^p.*3\/ {print $0}<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u06cc\u06a9 \u062e\u0637 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u0627 \u0627\u0644\u06af\u0648 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78975\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"636\" height=\"167\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_710_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 636w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image2-1-300x79.jpg 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image2-1-634x167.jpg 634w\" data-lazy-sizes=\"(max-width: 636px) 100vw, 636px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_710_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78975\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_710_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"636\" height=\"167\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_710_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 636w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image2-1-300x79.jpg 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image2-1-634x167.jpg 634w\" sizes=\"(max-width: 636px) 100vw, 636px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_3_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_gsub_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 3: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 gsub \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0631\u0627<strong> gsub ()<\/strong> \u062a\u0627\u0628\u0639 \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u06cc \u0633\u0631\u0627\u0633\u0631\u06cc \u0648 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u06cc \u0645\u062a\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u062f\u0633\u062a\u0648\u0631 \u00abawk\u00bb \u0632\u06cc\u0631 \u06a9\u0644\u0645\u0647 \u00ab\u0627\u0633\u06a9\u0646\u0631\u00bb \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0642\u0628\u0644 \u0627\u0632 \u0686\u0627\u067e \u0646\u062a\u06cc\u062c\u0647 \u0628\u0627 \u06a9\u0644\u0645\u0647 \u00ab\u0631\u0648\u062a\u0631\u00bb \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;gsub(\/\u0627\u0633\u06a9\u0646\u0631\/\u060c &#8220;\u0631\u0648\u062a\u0631&#8221;)&#8221;<\/span>  products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u06cc\u06a9 \u062e\u0637 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0647 &#8220;<strong>\u0627\u0633\u06a9\u0646\u0631<\/strong>&#8220;\u060c \u0648&#8221;<strong>\u0627\u0633\u06a9\u0646\u0631<\/strong>&#8220;\u0628\u0627 \u06a9\u0644\u0645\u0647&#8221; \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0645\u06cc \u0634\u0648\u062f<strong>\u0631\u0648\u062a\u0631<\/strong>\u0642\u0628\u0644 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u062e\u0637 \u0686\u0627\u067e \u0634\u0648\u062f.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78976\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"636\" height=\"163\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_580_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 636w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image1-1-300x77.jpg 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image1-1-634x163.jpg 634w\" data-lazy-sizes=\"(max-width: 636px) 100vw, 636px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_580_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78976\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_580_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"636\" height=\"163\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993109_580_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 636w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image1-1-300x77.jpg 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image1-1-634x163.jpg 634w\" sizes=\"(max-width: 636px) 100vw, 636px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_4_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%b1%d8%a7_%d8%a8%d8%a7_%e2%80%9c%e2%80%9d_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 4: \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u0631\u0627 \u0628\u0627 &#8220;*&#8221; \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0633\u062a\u0648\u0631 awk \u0632\u06cc\u0631 \u0639\u0628\u0627\u0631\u062a \u0648 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f print \u0647\u0631 \u0631\u0634\u062a\u0647 \u0627\u06cc \u06a9\u0647 \u0628\u0627 &#8216;Mo&#8217; \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u062f \u0648 \u0647\u0631 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0628\u0639\u062f\u06cc \u0631\u0627 \u0634\u0627\u0645\u0644 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;\/Mo*\/ {print $0}<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u0633\u0647 \u062e\u0637 \u0628\u0627 \u0627\u0644\u06af\u0648 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f: \u062f\u0648 \u062e\u0637 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0647 &#8220;<strong>\u0645\u0648\u0634<\/strong>\u0648 \u06cc\u06a9 \u062e\u0637 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0647 \u0627\u0633\u062a<strong>\u0646\u0638\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f<\/strong>&#8216;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78977\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"635\" height=\"188\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_144_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 635w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image6-1-300x89.jpg 300w\" data-lazy-sizes=\"(max-width: 635px) 100vw, 635px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_144_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78977\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_144_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"635\" height=\"188\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_144_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 635w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image6-1-300x89.jpg 300w\" sizes=\"(max-width: 635px) 100vw, 635px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_5_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d9%86%d9%85%d8%a7%d8%af_%e2%80%98_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 5: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8216;$&#8217; \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0633\u062a\u0648\u0631 awk \u0632\u06cc\u0631 \u0639\u0628\u0627\u0631\u062a \u0648 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f print \u062e\u0637\u0648\u0637\u06cc \u062f\u0631 \u0641\u0627\u06cc\u0644 \u06a9\u0647 \u0628\u0647 \u0639\u062f\u062f 5 \u062e\u062a\u0645 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;\/5$\/ {print $0}<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u0641\u0642\u0637 \u06cc\u06a9 \u062e\u0637 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u0647 \u0639\u062f\u062f 5 \u062e\u062a\u0645 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78978\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"634\" height=\"158\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_636_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 634w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image3-1-300x75.jpg 300w\" data-lazy-sizes=\"(max-width: 634px) 100vw, 634px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_636_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78978\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_636_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"634\" height=\"158\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_636_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 634w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image3-1-300x75.jpg 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_6_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%b1%d8%a7_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%e2%80%98_%d9%88_%e2%80%98_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af_%d9%86%d9%85%d8%a7%d8%af%d9%87%d8%a7\"><\/span>\u0645\u062b\u0627\u0644 6: \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 &#8216;^&#8217; \u0648 &#8216;|&#8217; \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f.  \u0646\u0645\u0627\u062f\u0647\u0627<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&#8216;<strong>^<\/strong>\u0646\u0645\u0627\u062f &#8221; \u0634\u0631\u0648\u0639 \u06cc\u06a9 \u062e\u0637 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0648 &#8220;<strong>|<\/strong>\u0646\u0645\u0627\u062f &#8216; \u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a OR \u0645\u0646\u0637\u0642\u06cc \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.  \u062f\u0633\u062a\u0648\u0631 awk \u0632\u06cc\u0631 \u0639\u0628\u0627\u0631\u062a \u0648 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f print \u062e\u0637\u0648\u0637\u06cc \u06a9\u0647 \u0628\u0627 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u0646\u062f<strong>\u067e<\/strong>&#8220;\u0648 \u062d\u0627\u0648\u06cc \u06cc\u06a9\u06cc&#8221;<strong>\u0627\u0633\u06a9\u0646\u0631<\/strong>&#8216; \u06cc\u0627 &#8216;<strong>\u0645\u0648\u0634<\/strong>&#8216;.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;\/^p.* (\u0627\u0633\u06a9\u0646\u0631|\u0645\u0648\u0633)\/&#8217;<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u062e\u0631\u0648\u062c\u06cc \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u062f\u0648 \u062e\u0637 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0647 &#8220;<strong>\u0645\u0648\u0634<\/strong>\u0648 \u06cc\u06a9 \u062e\u0637 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0647 \u0627\u0633\u062a<strong>\u0627\u0633\u06a9\u0646\u0631<\/strong>&#8216;.  \u0633\u0647 \u062e\u0637 \u0628\u0627 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u062f<strong>\u067e<\/strong>&#8216;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78979\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"744\" height=\"224\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_128_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 744w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image8-300x90.jpg 300w\" data-lazy-sizes=\"(max-width: 744px) 100vw, 744px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_128_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78979\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_128_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"744\" height=\"224\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_128_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 744w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image8-300x90.jpg 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_7_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d9%86%d9%85%d8%a7%d8%af_%e2%80%98_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 7: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f &#8216;+&#8217; \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&#8216;<strong>+<\/strong>\u0639\u0645\u0644\u06af\u0631 &#8216; \u0628\u0631\u0627\u06cc \u06cc\u0627\u0641\u062a\u0646 \u062d\u062f\u0627\u0642\u0644 \u06cc\u06a9 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u062f\u0633\u062a\u0648\u0631 awk \u0632\u06cc\u0631 \u0639\u0628\u0627\u0631\u062a \u0648 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f print \u062e\u0637\u0648\u0637\u06cc \u06a9\u0647 \u062d\u0627\u0648\u06cc \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0647\u0633\u062a\u0646\u062f<strong>n<\/strong>&#8216; \u062d\u062f \u0627\u0642\u0644 \u06cc\u06a9 \u0628\u0627\u0631.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;\/n+\/{print}&#8217;<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u0627\u06cc\u0646\u062c\u0627 \u0634\u062e\u0635\u06cc\u062a &#8220;<strong>n<\/strong>&#8216; \u062d\u0627\u0648\u06cc \u062d\u062f\u0627\u0642\u0644 \u06cc\u06a9 \u0628\u0627\u0631 \u062f\u0631 \u062e\u0637\u0648\u0637\u06cc \u06a9\u0647 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0627\u062a \u0647\u0633\u062a\u0646\u062f \u0631\u062e \u0645\u06cc \u062f\u0647\u062f <strong>\u0645\u0627\u0646\u06cc\u062a\u0648\u0631\u060c \u0686\u0627\u067e\u06af\u0631 \u0648 \u0627\u0633\u06a9\u0646\u0631<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78980\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"635\" height=\"187\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_126_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 635w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image7-300x88.jpg 300w\" data-lazy-sizes=\"(max-width: 635px) 100vw, 635px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_126_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78980\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_126_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"635\" height=\"187\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993110_126_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 635w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image7-300x88.jpg 300w\" sizes=\"(max-width: 635px) 100vw, 635px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_8_%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_%d8%aa%d8%a7%d8%a8%d8%b9_gsub_%db%8c%da%a9_%d8%a7%d9%84%da%af%d9%88%db%8c_regex_%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%da%a9%d9%86%db%8c%d8%af\"><\/span>\u0645\u062b\u0627\u0644 8: \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u0627\u0628\u0639 gsub () \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc regex \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0633\u062a\u0648\u0631 \u00abawk\u00bb \u0632\u06cc\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u062c\u0647\u0627\u0646\u06cc \u06a9\u0644\u0645\u0647 \u00ab\u00bb \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u06a9\u0646\u062f.<strong>\u0686\u0627\u067e\u06af\u0631<\/strong>&#8220;\u0648 \u0628\u0627 \u06a9\u0644\u0645\u0647&#8221; \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f<strong>\u0646\u0638\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f<\/strong>&#8216; \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632<strong> \u062a\u0627\u0628\u0639 gsub().<\/strong>.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"overflow:auto;white-space:nowrap;width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> products.txt<\/p>\n<p>$ <span class=\"kw2\">\u0628\u06cc\u062e\u06cc\u0627\u0644<\/span> <span class=\"st_h\">&#8216;gsub(\/Printer\/, &#8220;Monitor&#8221;) { print$0}<\/span> products.txt<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.  \u062e\u0637 \u0686\u0647\u0627\u0631\u0645 \u0641\u0627\u06cc\u0644 \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0647 &#8220;<strong>\u0686\u0627\u067e\u06af\u0631<\/strong>&#8216;\u062f\u0648\u0628\u0627\u0631 \u0648 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc&#8217;<strong>\u0686\u0627\u067e\u06af\u0631<\/strong>&#8220;\u0628\u0627 \u06a9\u0644\u0645\u0647&#8221; \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0634\u062f\u0647 \u0627\u0633\u062a<strong>\u0646\u0638\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f<\/strong>&#8216;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-78981\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"751\" height=\"208\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993111_432_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 751w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image5-1-300x83.jpg 300w\" data-lazy-sizes=\"(max-width: 751px) 100vw, 751px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993111_432_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" http: title=\"\"><img decoding=\"async\" class=\"alignnone size-full wp-image-78981\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993111_432_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg\" alt=\"\" width=\"751\" height=\"208\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703993111_432_\u0646\u062d\u0648\u0647-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u0628\u0627-\u062f\u0633\u062a\u0648\u0631-awk.jpg 751w, https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/12\/image5-1-300x83.jpg 300w\" sizes=\"(max-width: 751px) 100vw, 751px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><\/span>\u0646\u062a\u06cc\u062c\u0647<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0646\u0645\u0627\u062f\u0647\u0627 \u0648 \u062a\u0648\u0627\u0628\u0639 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u06cc \u0645\u062e\u062a\u0644\u0641 \u0648 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u06cc \u0648\u0638\u0627\u06cc\u0641 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.  \u0628\u0631\u062e\u06cc \u0627\u0632 \u0646\u0645\u0627\u062f\u0647\u0627 \u06a9\u0647 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u062f\u0631 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u0646\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 &#8216;awk&#8217; \u0627\u0639\u0645\u0627\u0644 \u0645\u06cc \u0634\u0648\u0646\u062f.<\/p>\n<\/div>\n\n<div>\u0628\u0631\u0627\u06cc \u0646\u06af\u0627\u0631\u0634 \u0628\u062e\u0634\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0645\u062a\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062a\u0631\u062c\u0645\u0647 \u0645\u0627\u0634\u06cc\u0646\u06cc \u06cc\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc GPT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f <br \/>\n\u0644\u0637\u0641\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0645\u062a\u0646 \u06cc\u0627 \u0645\u0641\u0647\u0648\u0645 \u0646\u0628\u0648\u062f\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u06a9\u0645\u0647 \u06af\u0632\u0627\u0631\u0634 \u0646\u0648\u0634\u062a\u0627\u0631 \u06cc\u0627 \u062f\u0631\u062c \u0646\u0638\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0645\u0627 \u0631\u0627 \u0627\u0632 \u062c\u0632\u06cc\u06cc\u0627\u062a \u0645\u0634\u06a9\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u062f\u0647 \u0645\u0637\u0644\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0631\u0633\u06cc\u062f\u06af\u06cc \u06a9\u0646\u06cc\u0645\n<\/div>\n<p>\u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631: 1402-12-31 06:55:05<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;12511&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Regex \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 awk&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 (regex) \u0628\u0631\u0627\u06cc \u06cc\u0627\u0641\u062a\u0646 \u06cc\u06a9 \u062f\u0646\u0628\u0627\u0644\u0647 \u0645\u0639\u06cc\u0646 \u0627\u0632 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0627\u0644\u06af\u0648 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0632 \u0646\u0645\u0627\u062f\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u062d\u0631\u0648\u0641\u060c \u0627\u0631\u0642\u0627\u0645 \u0648 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc \u062e\u0627\u0635 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f. \u06a9\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0631\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc regex \u0631\u0627 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":12512,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2740,1062],"tags":[2744,2745,2743,2741],"class_list":["post-12511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-programming","category-bash-script","tag-bash-script","tag-2745","tag--bash","tag---bash"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/12511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=12511"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/12511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/12512"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=12511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=12511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=12511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}