{"id":12011,"date":"2023-12-30T15:28:12","date_gmt":"2023-12-30T11:58:12","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case\/"},"modified":"2023-12-30T15:28:12","modified_gmt":"2023-12-30T11:58:12","slug":"%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case\/","title":{"rendered":"\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Regex \u062f\u0631 \u0639\u0628\u0627\u0631\u0627\u062a Bash Case"},"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%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case\/#%d9%85%d8%ab%d8%a7%d9%84_01\" >\u0645\u062b\u0627\u0644 01:<\/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%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case\/#%d9%85%d8%ab%d8%a7%d9%84_02\" >\u0645\u062b\u0627\u0644 02:<\/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%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case\/#%d9%85%d8%ab%d8%a7%d9%84_03\" >\u0645\u062b\u0627\u0644 03:<\/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%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-regex-%d8%af%d8%b1-%d8%b9%d8%a8%d8%a7%d8%b1%d8%a7%d8%aa-bash-case\/#%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\"> 5<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div id=\"wpbody\">\u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u06cc\u0627 Regex \u0628\u0647 \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u0644\u0641\u0628\u0627\u06cc\u06cc \u06af\u0641\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0631\u0633 \u0648 \u062c\u0648\u0647\u0627\u06cc \u062c\u0633\u062a\u062c\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062c\u0633\u062a\u062c\u0648 \u0648 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u062f\u0631 \u062d\u06cc\u0646 \u062a\u0623\u06cc\u06cc\u062f \u0628\u0631\u062e\u06cc \u0634\u0631\u0627\u06cc\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.  Regex \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 bash \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u06cc\u0627 \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631\u06cc.  \u0627\u063a\u0644\u0628 \u0627\u0648\u0642\u0627\u062a\u060c regex \u062f\u0631 \u0639\u0628\u0627\u0631\u0627\u062a grep \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0633\u062a \u0646\u0647 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631\u0627\u062a case.  \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0631\u0648\u0634 \u0639\u0645\u0644\u06a9\u0631\u062f \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645 \u0628\u0627 \u0639\u0628\u0627\u0631\u062a case \u0631\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 20.04 \u0645\u0634\u0627\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.  \u0642\u0628\u0644 \u0627\u0632 \u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u062f\u0627\u0645\u0647 \u0645\u0637\u0644\u0628 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_01\"><\/span>\u0645\u062b\u0627\u0644 01:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0627\u0648\u0642\u0627\u062a\u060c \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 regex (\u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645) \u0631\u0627 \u062f\u0631 \u0639\u0628\u0627\u0631\u0627\u062a &#8220;case&#8221; \u062f\u0634\u0648\u0627\u0631 \u0645\u06cc \u062f\u0627\u0646\u0633\u062a\u0646\u062f \u0632\u06cc\u0631\u0627 &#8220;regex&#8221; \u0647\u0631\u06af\u0632 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631\u0627\u062a case \u06a9\u0627\u0631 \u0646\u0645\u06cc \u06a9\u0646\u062f.  \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u060c &#8220;grep&#8221; \u0647\u0645\u06cc\u0634\u0647 \u0628\u0647 \u062c\u0627\u06cc \u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a case \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 regex \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a bash.  \u0645\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0633\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u06cc\u062f \u062a\u0627 \u0628\u0628\u06cc\u0646\u06cc\u0645 \u0686\u06af\u0648\u0646\u0647 grep \u0648 case \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u0646\u062f.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f terminal console  \u0642\u0628\u0644 \u0627\u0632 \u062d\u0631\u06a9\u062a \u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u06cc\u0627\u0646\u0628\u0631 &#8220;Ctrl+Alt+T&#8221;.  \u067e\u0633 \u0627\u0632 \u0628\u0627\u0632 \u06a9\u0631\u062f\u0646 terminal\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u062c\u062f\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f bash \u0641\u0627\u06cc\u0644 \u0628\u0627 \u067e\u0631\u0633 \u0648 \u062c\u0648 \u0644\u0645\u0633\u06cc.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u062f\u0633\u062a \u0632\u062f\u0646 \u0628\u0647<\/span> test.sh<\/div>\n<\/div>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f bash \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u0634\u0648\u062f bash \u06a9\u062f  \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0639\u0628\u0627\u0631\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u0646\u0627\u0646\u0648<\/span> test.sh<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"344\" height=\"15\" class=\"aligncenter size-full wp-image-118080\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 344w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/1-41-300x13.jpg 300w\" sizes=\"(max-width: 344px) 100vw, 344px\" title=\"\"><\/p>\n<p>\u0631\u0627 bash \u0641\u0627\u06cc\u0644 \u062f\u0631 &#8221; \u0628\u0627\u0632 \u0634\u062f\u0647 \u0627\u0633\u062aGNU \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631\u00bb.  \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 bash \u06a9\u062f \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0627\u0633\u062a bash \u0641\u0627\u06cc\u0644.  \u0627\u06cc\u0646 \u06a9\u062f \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 grep \u0628\u062d\u062b \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u062f\u0631 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.  \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 bash \u0627\u0628\u062a\u062f\u0627 \u067e\u0633\u0648\u0646\u062f  \u0645\u0627 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 &#8220;s&#8221; \u0631\u0627 \u0628\u0627 \u0641\u0627\u0635\u0644\u0647 \u0648 \u0631\u0634\u062a\u0647 \u0647\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u0642\u062f\u0627\u0631 \u0622\u0646 \u0627\u0639\u0644\u0627\u0645 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.  \u0627\u0648\u0644\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 echo \u0627\u06cc\u0646 \u067e\u06cc\u0627\u0645 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 regex \u0628\u0627 &#8220;grep&#8221; \u062f\u0631 \u0627\u06cc\u0646 \u06a9\u062f \u0645\u062b\u0627\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.  \u062f\u0631 \u062e\u0637 \u0628\u0639\u062f\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 echo \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0645\u062a\u063a\u06cc\u0631 \u201cs\u201d \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.  \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 grep\u060c \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u06cc \u0645\u062a\u0646 &#8220;word1&#8221; \u0627\u0632 \u0645\u062a\u063a\u06cc\u0631 &#8220;s&#8221; \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 \u062a\u0635\u0648\u06cc\u0631 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f.  \u06a9\u062f \u062e\u0648\u062f \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 &#8220;Ctrl+S&#8221; \u0648 &#8220;Ctrl+X&#8221; \u067e\u0634\u062a \u0633\u0631 \u0647\u0645 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f. <\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"414\" height=\"95\" class=\"aligncenter size-full wp-image-118081\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937488_815_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 414w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/2-39-300x69.jpg 300w\" data-lazy-sizes=\"(max-width: 414px) 100vw, 414px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937488_815_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937488_815_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"414\" height=\"95\" class=\"aligncenter size-full wp-image-118081\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937488_815_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 414w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/2-39-300x69.jpg 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" title=\"\"><\/p>\n<p>\u0648\u0642\u062a \u0622\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0645\u0627 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645 bash \u0641\u0627\u06cc\u0644 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0646\u062a\u0627\u06cc\u062c \u0622\u0646 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0645\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 bash \u062f\u0633\u062a\u0648\u0631 \u0627\u062c\u0631\u0627\u06cc \u0641\u0627\u06cc\u0644 test.sh.  \u062e\u0631\u0648\u062c\u06cc \u0646\u062a\u06cc\u062c\u0647 \u0645\u062a\u063a\u06cc\u0631 \u201cs\u201d \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u067e\u06cc\u0627\u0645 \u201cwith grep\u201d \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.  \u0627\u06cc\u0646 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 regex \u06a9\u0627\u0645\u0644\u0627\u064b \u062f\u0631 \u0639\u0628\u0627\u0631\u0627\u062a grep \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>\u0628\u0627\u0633\u062a \u062a\u0633\u062a.\u0634<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"338\" height=\"53\" class=\"aligncenter size-full wp-image-118082\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_942_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 338w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/3-38-300x47.jpg 300w\" data-lazy-sizes=\"(max-width: 338px) 100vw, 338px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_942_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_942_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"338\" height=\"53\" class=\"aligncenter size-full wp-image-118082\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_942_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 338w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/3-38-300x47.jpg 300w\" sizes=\"(max-width: 338px) 100vw, 338px\" title=\"\"><\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u06cc\u0646 \u0628\u0627\u0631 \u0647\u0645\u0627\u0646 \u062e\u0631\u0648\u062c\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a case \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u062e\u0648\u062f \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f bash \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u0631\u0633 \u0648 \u062c\u0648\u06cc \u201cnano\u201d \u062f\u0648\u0628\u0627\u0631\u0647 \u062f\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0641\u0627\u06cc\u0644 \u06a9\u0646\u06cc\u062f.  \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 bash \u067e\u0633\u0648\u0646\u062f \u0648 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 &#8220;s&#8221; \u0628\u0627 \u0645\u0642\u062f\u0627\u0631\u06cc \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f.  \u0645\u0627 \u0627\u0632 \u0639\u0628\u0627\u0631\u062a &#8220;echo&#8221; \u0628\u0631\u0627\u06cc \u062a\u0648\u0636\u06cc\u062d \u0628\u06cc\u0634\u062a\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 \u0631\u0648\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u06cc\u0627\u0646\u06cc\u0647 \u0645\u0648\u0631\u062f \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631.  \u0647\u0646\u06af\u0627\u0645 \u062c\u0633\u062a\u062c\u0648\u06cc \u0645\u062a\u063a\u06cc\u0631 &#8220;s&#8221; \u062f\u0631 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062f\u0631 \u06a9\u062f\u060c \u062f\u0633\u062a\u0648\u0631 case \u0631\u0627 \u0634\u0631\u0648\u0639 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.  \u0648\u0642\u062a\u06cc \u0631\u0634\u062a\u0647 \u0645\u0646\u0637\u0628\u0642 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u060c \u0628\u0627\u06cc\u062f \u0645\u062a\u063a\u06cc\u0631 &#8220;s&#8221; \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0686\u0627\u067e \u06a9\u0646\u062f terminal.  \u0633\u067e\u0633\u060c \u0628\u06cc\u0627\u0646\u06cc\u0647 \u0645\u0648\u0631\u062f \u0628\u0627 \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc &#8220;esac&#8221; \u067e\u0627\u06cc\u0627\u0646 \u06cc\u0627\u0641\u062a\u0647 \u0627\u0633\u062a.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"414\" height=\"136\" class=\"aligncenter size-full wp-image-118083\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_34_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 414w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/4-35-300x99.jpg 300w\" data-lazy-sizes=\"(max-width: 414px) 100vw, 414px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_34_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_34_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"414\" height=\"136\" class=\"aligncenter size-full wp-image-118083\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_34_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 414w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/4-35-300x99.jpg 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" title=\"\"><\/p>\n<p>\u062f\u0631 \u062d\u06cc\u0646 \u0627\u062c\u0631\u0627\u06cc bash \u0641\u0627\u06cc\u0644 \u062f\u0631 \u062f\u0627\u062e\u0644 terminal\u060c \u0628\u0647 \u0646\u0638\u0631 \u0645\u06cc \u0631\u0633\u062f \u06a9\u0647 \u06cc\u06a9 \u062e\u0637\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u06cc \u0628\u0627 \u06af\u0641\u062a\u0646 &#8220;\u062e\u0637\u0627\u06cc \u0646\u062d\u0648\u06cc \u062f\u0631 \u0646\u0632\u062f\u06cc\u06a9\u06cc \u062a\u0648\u06a9\u0646 \u063a\u06cc\u0631\u0645\u0646\u062a\u0638\u0631\u0647 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f. [expression]&#8221;.  \u0627\u06cc\u0646 \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u0628\u0627 \u0639\u0628\u0627\u0631\u062a case \u06a9\u0627\u0631 \u0646\u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">bash<\/span>  test.sh<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"647\" height=\"69\" class=\"aligncenter size-full wp-image-118084\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_835_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 647w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/5-33-300x32.jpg 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/5-33-634x69.jpg 634w\" data-lazy-sizes=\"(max-width: 647px) 100vw, 647px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_835_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_835_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"647\" height=\"69\" class=\"aligncenter size-full wp-image-118084\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_835_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 647w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/5-33-300x32.jpg 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/5-33-634x69.jpg 634w\" sizes=\"(max-width: 647px) 100vw, 647px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_02\"><\/span>\u0645\u062b\u0627\u0644 02:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0646\u06af\u0627\u0647\u06cc \u0628\u0647 \u0646\u0645\u0648\u0646\u0647 \u062f\u06cc\u06af\u0631\u06cc \u0627\u0632 \u0645\u0639\u0645\u0648\u0644\u06cc \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u0645 bash \u0627\u0635\u0637\u0644\u0627\u062d\u0627\u062a.  \u0627\u06cc\u0646 \u0628\u0627\u0631 \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f regex \u0627\u0632 \u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u06a9\u0645\u06cc \u0645\u062a\u0641\u0627\u0648\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.  \u0627\u0632 \u0633\u0648\u06cc \u062f\u06cc\u06af\u0631\u060c regex \u0631\u0627 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 &#8220;if&#8221; \u0628\u0647 \u062c\u0627\u06cc &#8220;\u06af\u0632\u0627\u0631\u0647 \u0645\u0648\u0631\u062f&#8221; \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u06cc\u062f.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0641\u0627\u06cc\u0644 &#8220;test.sh&#8221; \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u0646\u0627\u0646\u0648<\/span> test.sh<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"343\" height=\"19\" class=\"aligncenter size-full wp-image-118085\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_426_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 343w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/6-30-300x17.jpg 300w\" data-lazy-sizes=\"(max-width: 343px) 100vw, 343px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_426_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_426_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"343\" height=\"19\" class=\"aligncenter size-full wp-image-118085\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937489_426_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 343w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/6-30-300x17.jpg 300w\" sizes=\"(max-width: 343px) 100vw, 343px\" title=\"\"><\/p>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0641\u0627\u06cc\u0644 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0628\u0627\u0632 \u0627\u0633\u062a\u060c \u0645\u0627 \u0622\u0646 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 bash \u067e\u0633\u0648\u0646\u062f \u0648 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0639\u0628\u0627\u0631\u062a \u201cif\u201d \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0634\u0631\u0637.  \u062f\u0631 \u0639\u0628\u0627\u0631\u062a &#8220;if&#8221; \u0628\u0647 \u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0646\u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0647\u06cc\u0686 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645\u06cc \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645.  \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u0639\u0628\u0627\u0631\u062a &#8220;=~&#8221; \u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647 \u0633\u0627\u0632\u06cc regex \u062f\u0631 \u06a9\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.  \u062f\u0631 \u0627\u06cc\u0646 \u0634\u0631\u0637\u060c regex \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 &#8220;$&#8221; \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u0645\u0639\u062a\u0628\u0631 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645.  \u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647 \u0628\u0627 \u0634\u0631\u0627\u06cc\u0637 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u062f\u0631 \u0639\u0628\u0627\u0631\u062a &#8220;if&#8221; \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f\u060c \u0628\u0627\u06cc\u062f \u0622\u0646 \u0639\u0628\u0627\u0631\u062a \u0631\u0627 \u062f\u0631 \u0645\u062a\u063a\u06cc\u0631 &#8220;n&#8221; \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 &#8220;Valid&#8221; \u0631\u0627 \u0686\u0627\u067e \u06a9\u0646\u062f.  \u0627\u06af\u0631 \u0634\u0631\u0637 \u0628\u0631\u0622\u0648\u0631\u062f\u0647 \u0646\u0634\u062f\u060c \u0628\u0627\u06cc\u062f &#8220;Invalid&#8221; \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0686\u0627\u067e \u06a9\u0646\u062f terminal \u0648 \u0639\u0628\u0627\u0631\u062a &#8220;if&#8221; \u0631\u0627 \u0628\u0628\u0646\u062f\u06cc\u062f.  \u0641\u0642\u0637 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0627 \u0645\u06cc\u0627\u0646\u0628\u0631 &#8220;Ctrl+S&#8221; \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0631\u0627 \u0628\u0627 &#8220;Ctrl+X&#8221; \u062a\u0631\u06a9 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"472\" height=\"146\" class=\"aligncenter size-full wp-image-118086\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937490_45_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 472w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/7-29-300x93.jpg 300w\" data-lazy-sizes=\"(max-width: 472px) 100vw, 472px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937490_45_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937490_45_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"472\" height=\"146\" class=\"aligncenter size-full wp-image-118086\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937490_45_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 472w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/7-29-300x93.jpg 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" title=\"\"><\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631\u060c \u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 terminal\u060c \u0645\u0627 \u0639\u0628\u0627\u0631\u062a execution of \u0631\u0627 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 bash \u0641\u0627\u06cc\u0644 &#8220;test.sh&#8221; \u0631\u0627 \u0633\u0647 \u0628\u0627\u0631 \u0628\u0627 \u062a\u062c\u0632\u06cc\u0647 \u0628\u0631\u062e\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u0648 \u0646\u0645\u0627\u062f\u0647\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.  \u0645\u0627 \u0627\u06cc\u0646 \u0628\u0627\u0631 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627\u06cc @\u060c # \u0648 f \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.  \u0647\u0645\u0647 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u0647\u0627 \u0645\u0637\u0627\u0628\u0642 \u0628\u0627 &#8220;\u0646\u0627\u0645\u0639\u062a\u0628\u0631&#8221; \u0627\u0639\u0644\u0627\u0645 \u0634\u062f\u0647 \u0627\u0646\u062f bash \u06a9\u062f  \u0627\u06cc\u0646 \u0628\u0647 \u0627\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u0627\u0633\u062a \u06a9\u0647 \u0645\u0627 \u0627\u0632 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645 \u062a\u0627 \u0641\u0642\u0637 \u00ab$\u00bb \u0631\u0627 \u0645\u0639\u062a\u0628\u0631 \u0628\u062f\u0627\u0646\u06cc\u0645.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">bash<\/span>  test.sh<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"359\" height=\"111\" class=\"aligncenter size-full wp-image-118087\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_307_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 359w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/8-25-300x93.jpg 300w\" data-lazy-sizes=\"(max-width: 359px) 100vw, 359px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_307_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_307_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"359\" height=\"111\" class=\"aligncenter size-full wp-image-118087\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_307_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 359w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/8-25-300x93.jpg 300w\" sizes=\"(max-width: 359px) 100vw, 359px\" title=\"\"><\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u06cc\u0646 \u0628\u0627\u0631 &#8220;$&#8221; \u0631\u0627 \u062f\u0631 \u06a9\u0648\u0626\u0631\u06cc \u0627\u062c\u0631\u0627 \u0628\u06af\u06cc\u0631\u06cc\u0645 \u062a\u0627 \u0631\u0648\u0634 \u0639\u0645\u0644\u06a9\u0631\u062f \u0622\u0646 \u0631\u0627 \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u0645.  \u0628\u0647 \u0646\u0638\u0631 \u0645\u06cc \u0631\u0633\u062f \u06a9\u0647 &#8220;$&#8221; \u06cc\u06a9 \u0639\u0628\u0627\u0631\u062a \u0645\u0639\u062a\u0628\u0631 \u0627\u0633\u062a\u060c \u0648 \u062e\u0631\u0648\u062c\u06cc &#8220;Valid&#8221; \u0631\u0627 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0686\u0627\u067e \u0645\u06cc \u06a9\u0646\u062f. console \u067e\u0648\u0633\u062a\u0647.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span> <span class=\"kw2\">bash<\/span>  test.sh<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"363\" height=\"34\" class=\"aligncenter size-full wp-image-118088\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_595_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 363w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/9-23-300x28.jpg 300w\" data-lazy-sizes=\"(max-width: 363px) 100vw, 363px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_595_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_595_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"363\" height=\"34\" class=\"aligncenter size-full wp-image-118088\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_595_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 363w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/9-23-300x28.jpg 300w\" sizes=\"(max-width: 363px) 100vw, 363px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84_03\"><\/span>\u0645\u062b\u0627\u0644 03:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0645\u062a\u0641\u0627\u0648\u062a \u0648 \u0633\u0627\u062f\u0647 \u0627\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 case \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645.  \u062f\u0648\u0628\u0627\u0631\u0647 \u0628\u06cc\u0627\u06cc\u06cc\u062f \u062f\u0631 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u0645 bash \u0641\u0627\u06cc\u0644 &#8220;test.sh&#8221; \u062f\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 20.04.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u0646\u0627\u0646\u0648<\/span> test.sh<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"335\" height=\"20\" class=\"aligncenter size-full wp-image-118089\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_85_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 335w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/10-22-300x18.jpg 300w\" data-lazy-sizes=\"(max-width: 335px) 100vw, 335px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_85_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_85_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"335\" height=\"20\" class=\"aligncenter size-full wp-image-118089\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937491_85_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 335w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/10-22-300x18.jpg 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" title=\"\"><\/p>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 test.sh bash \u0641\u0627\u06cc\u0644 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a GNU \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0646\u0627\u0646\u0648 4.8 terminal\u060c \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 bash \u067e\u0633\u0648\u0646\u062f \u062f\u0631 \u0627\u0628\u062a\u062f\u0627\u06cc \u06cc\u06a9 \u0641\u0627\u06cc\u0644  \u067e\u0633 \u0627\u0632 \u0622\u0646\u060c \u0645\u0627 \u0627\u0632 \u0639\u0628\u0627\u0631\u062a \u201cread\u201d \u0628\u0627 \u067e\u0631\u0686\u0645 \u201c-p\u201d \u0628\u0631\u0627\u06cc \u06af\u0631\u0641\u062a\u0646 \u0648\u0631\u0648\u062f\u06cc \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0646\u0627\u0645 \u0633\u0631\u0648\u0631 \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645.  \u0627\u06cc\u0646 \u0646\u0627\u0645 \u0633\u0631\u0648\u0631 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0648\u0631\u0648\u062f\u06cc \u062f\u0631 \u0645\u062a\u063a\u06cc\u0631 &#8220;SERVER&#8221; \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631 \u0628\u0627\u06cc\u062f URL \u0633\u0631\u0648\u0631 \u062f\u0627\u0645\u0646\u0647 \u0628\u0627\u0634\u062f.  \u0627\u06a9\u0646\u0648\u0646 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 case \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0631\u0627\u06cc \u0622\u0632\u0645\u0627\u06cc\u0634 \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u062f\u0633\u062a\u0648\u0631 case \u0631\u0627 \u0628\u0627 \u0645\u062a\u063a\u06cc\u0631 SERVER \u0634\u0631\u0648\u0639 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645 \u062a\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0622\u06cc\u0627 \u062f\u0627\u0645\u0646\u0647 \u0633\u0631\u0648\u0631 \u0648\u0631\u0648\u062f\u06cc \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647 \u0628\u0627 \u0633\u0627\u06cc\u0631 \u0639\u0628\u0627\u0631\u0627\u062a \u0630\u06a9\u0631 \u0634\u062f\u0647 \u062f\u0631 \u0639\u0628\u0627\u0631\u062a case \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f \u06cc\u0627 \u062e\u06cc\u0631.  \u0648\u0642\u062a\u06cc \u0645\u0642\u062f\u0627\u0631 \u0645\u062a\u063a\u06cc\u0631 &#8220;SERVER&#8221; \u0628\u0627 ws*.@ \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0634\u062ahost.com\u060c \u0627\u0632 \u0639\u0628\u0627\u0631\u062a echo \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u0646\u0634\u0627\u0646 \u062f\u0647\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u062f\u0627\u0645\u0646\u0647 &#8220;\u0648\u0628 \u0633\u0631\u0648\u0631&#8221; \u0627\u0633\u062a.  \u0627\u06af\u0631 \u0645\u0637\u0627\u0628\u0642 \u0628\u0627 db*.@host.com\u060c \u0627\u0632 \u0639\u0628\u0627\u0631\u062a &#8220;echo&#8221; \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0633\u0631\u0648\u0631 \u06cc\u06a9 &#8220;\u0633\u0631\u0648\u0631 DB&#8221; \u0627\u0633\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f.  \u0627\u06af\u0631 \u062f\u0627\u0645\u0646\u0647 bk*.@ \u0628\u0627\u0634\u062fhost.com\u060c &#8220;\u0633\u0631\u0648\u0631 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646&#8221; \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.  \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a\u060c \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0646\u0627\u0634\u0646\u0627\u062e\u062a\u0647 \u0627\u0633\u062a.  \u0633\u062a\u0627\u0631\u0647 \u0646\u0634\u0627\u0646 \u062f\u0647\u0646\u062f\u0647 regex \u0627\u0633\u062a.  \u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646\u060c \u0639\u0628\u0627\u0631\u062a case \u0628\u0627 \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc \u201cesac\u201d \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0633\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u0627\u06cc\u0646 \u06a9\u062f \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0647\u0645\u0627\u0646 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u0645\u06cc\u0627\u0646\u0628\u0631 \u00abCtrl+S\u00bb \u0648 \u00abCtrl+X\u00bb \u0627\u0632 \u0622\u0646 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"458\" height=\"164\" class=\"aligncenter size-full wp-image-118090\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_362_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 458w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/11-18-300x107.jpg 300w\" data-lazy-sizes=\"(max-width: 458px) 100vw, 458px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_362_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_362_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"458\" height=\"164\" class=\"aligncenter size-full wp-image-118090\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_362_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 458w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/11-18-300x107.jpg 300w\" sizes=\"(max-width: 458px) 100vw, 458px\" title=\"\"><\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0628\u0647 \u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 terminal\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u06cc\u0646 \u0631\u0627 \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u0645 bash \u06a9\u062f \u0628\u0627 \u0627\u062c\u0631\u0627\u06cc bash \u062f\u0633\u062a\u0648\u0631 \u0628\u0627 \u0646\u0627\u0645 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 test.sh.  \u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627 \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u062f \u06a9\u0647 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u062f.  \u0645\u0627 \u06cc\u06a9 \u0646\u0627\u0645 \u0633\u0631\u0648\u0631 \u0645\u0639\u062a\u0628\u0631 &#8220;ws&#8221; \u0628\u0627 1234 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 regex \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 \u0648 Enter \u0631\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645.  \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0646\u062d\u0648 \u0633\u0631\u0648\u0631 \u0628\u0627 &#8220;\u0648\u0628 \u0633\u0631\u0648\u0631&#8221; \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"339\" height=\"57\" class=\"aligncenter size-full wp-image-118091\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_423_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 339w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/12-15-300x50.jpg 300w\" data-lazy-sizes=\"(max-width: 339px) 100vw, 339px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_423_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_423_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"339\" height=\"57\" class=\"aligncenter size-full wp-image-118091\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_423_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 339w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/12-15-300x50.jpg 300w\" sizes=\"(max-width: 339px) 100vw, 339px\" title=\"\"><\/p>\n<p>\u0645\u0627 \u06cc\u06a9 \u0627\u062c\u0631\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645 \u0648 \u0627\u06cc\u0646 \u0628\u0627\u0631 \u0633\u06cc\u0646\u062a\u06a9\u0633 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645.  \u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u0646\u0642\u0637\u0647 \u0627\u0632 URL \u062f\u0627\u0645\u0646\u0647 \u06af\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0646\u0627\u0634\u0646\u0627\u062e\u062a\u0647 \u0627\u0633\u062a.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"341\" height=\"58\" class=\"aligncenter size-full wp-image-118092\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_303_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 341w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/13-13-300x51.jpg 300w\" data-lazy-sizes=\"(max-width: 341px) 100vw, 341px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_303_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_303_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"341\" height=\"58\" class=\"aligncenter size-full wp-image-118092\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_303_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 341w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/13-13-300x51.jpg 300w\" sizes=\"(max-width: 341px) 100vw, 341px\" title=\"\"><\/p>\n<p>\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u06cc\u06a9 \u062f\u0627\u0645\u0646\u0647 \u0645\u0634\u0627\u0628\u0647 \u0648 \u062f\u0631\u0633\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645\u060c \u0646\u0627\u0645 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"344\" height=\"108\" class=\"aligncenter size-full wp-image-118093\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_350_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 344w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/14-12-300x94.jpg 300w\" data-lazy-sizes=\"(max-width: 344px) 100vw, 344px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_350_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_350_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg\" alt=\"\" width=\"344\" height=\"108\" class=\"aligncenter size-full wp-image-118093\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703937492_350_\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u0627\u0632-Regex-\u062f\u0631-\u0639\u0628\u0627\u0631\u0627\u062a-Bash-Case.jpg 344w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/08\/14-12-300x94.jpg 300w\" sizes=\"(max-width: 344px) 100vw, 344px\" 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>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u06cc\u0627\u0646\u06cc\u0647 \u0645\u0648\u0631\u062f\u06cc \u0631\u0627 \u0645\u0648\u0631\u062f \u0628\u062d\u062b \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645 bash \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645  \u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u06cc\u0645 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u06a9\u0631\u062f\u0647 \u0628\u0627\u0634\u062f \u062a\u0627 \u0634\u06a9 \u0648 \u062a\u0631\u062f\u06cc\u062f\u0647\u0627 \u0648 \u0639\u0648\u0627\u0631\u0636 \u0631\u0627 \u0627\u0632 \u0628\u06cc\u0646 \u0628\u0628\u0631\u06cc\u062f.\n <\/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-30 15:28:03<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;12011&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;\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Regex \u062f\u0631 \u0639\u0628\u0627\u0631\u0627\u062a Bash Case&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\"> 5<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u06cc\u0627 Regex \u0628\u0647 \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc \u0627\u0644\u0641\u0628\u0627\u06cc\u06cc \u06af\u0641\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0631\u0633 \u0648 \u062c\u0648\u0647\u0627\u06cc \u062c\u0633\u062a\u062c\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062c\u0633\u062a\u062c\u0648 \u0648 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u062f\u0631 \u062d\u06cc\u0646 \u062a\u0623\u06cc\u06cc\u062f \u0628\u0631\u062e\u06cc \u0634\u0631\u0627\u06cc\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. Regex \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u062f\u0631 bash \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u06cc\u0627 \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631\u06cc. \u0627\u063a\u0644\u0628 \u0627\u0648\u0642\u0627\u062a\u060c regex \u062f\u0631 \u0639\u0628\u0627\u0631\u0627\u062a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":12012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2740,1062],"tags":[1061,2749,2742],"class_list":["post-12011","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-programming","category-bash-script","tag--bash-scripting","tag--bash"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/12011","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=12011"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/12011\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/12012"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=12011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=12011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=12011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}