{"id":30207,"date":"2021-09-03T09:03:10","date_gmt":"2021-09-03T07:03:10","guid":{"rendered":"https:\/\/itedu.center\/ua\/blog\/?p=30207"},"modified":"2024-04-14T20:31:03","modified_gmt":"2024-04-14T17:31:03","slug":"guide_bash","status":"publish","type":"post","link":"https:\/\/itedu.center\/ua\/blog\/guides\/guide_bash\/","title":{"rendered":"\u0413\u0430\u0439\u0434: \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u043d\u0438\u0439 \u0430\u043d\u0430\u043b\u0456\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u0443 Bash"},"content":{"rendered":"\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0430\u0431\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438 Bash \u2014 \u0446\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0438\u0439 \u0444\u0430\u0439\u043b \u0437 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434, \u0449\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u043a\u043e\u043d\u0430\u0442\u0438 \u0432 \u043f\u0435\u0432\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0456\/\u0430\u0431\u043e \u0437\u0430 \u043f\u0435\u0432\u043d\u0438\u043c\u0438 \u0443\u043c\u043e\u0432\u0430\u043c\u0438. \u0412\u0456\u043d \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456 Linux \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u043b\u0438 \u0431\u0430\u0433\u0430\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434. \u0420\u043e\u0437\u0433\u043b\u044f\u043d\u044c\u043c\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u0432 Bash.<\/p>\n\n\n\n<p>* <strong>Bash <\/strong>\u2014 \u043d\u0430\u0439\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0456\u0448\u0438\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u0439 \u0456\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0432 Unix-\u043f\u043e\u0434\u0456\u0431\u043d\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0437\u043e\u043a\u0440\u0435\u043c\u0430 GNU\/Linux.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u041f\u0430\u0440\u0441\u0438\u043d\u0433 \u043e\u043f\u0446\u0456\u0439 \u0432 Bash<\/strong><\/h2>\n\n\n\n<p>\u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0456\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u043e\u043f\u0446\u0456\u0439 \u0432 Bash \u043f\u043e\u043b\u044f\u0433\u0430\u0454 \u0432 \u0442\u043e\u043c\u0443, \u0449\u043e\u0431:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438, \u044f\u043a\u0456 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0432\u0430\u0448\u0438\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0454\u043c \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438,&nbsp;<\/li><li>\u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438, \u0454 \u0432\u043e\u043d\u0438 \u043e\u043f\u0446\u0456\u0454\u044e \u0447\u0438 \u043d\u0456,&nbsp;<\/li><li>\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443.&nbsp;<\/li><\/ul>\n\n\n\n<p>\u041f\u043e\u0432\u0442\u043e\u0440\u044e\u0439\u0442\u0435 \u0446\u0435\u0439 \u043f\u0440\u043e\u0446\u0435\u0441, \u043f\u043e\u043a\u0438 \u043d\u0435 \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u044c\u0441\u044f \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432.<\/p>\n\n\n\n<p>\u041f\u043e\u0447\u043d\u0456\u0442\u044c \u0437 \u043f\u0440\u043e\u0441\u0442\u043e\u0457 \u043b\u043e\u0433\u0456\u0447\u043d\u043e\u0457 \u043e\u043f\u0446\u0456\u0457 (\u043f\u0435\u0440\u0435\u043c\u0438\u043a\u0430\u0447 \u0430\u0431\u043e \u043f\u0440\u0430\u043f\u043e\u0440, \u044f\u043a \u0432\u0430\u043c \u0437\u0440\u0443\u0447\u043d\u043e):<\/p>\n\n\n\n<p><code><strong><em>#!\/bin\/bash<\/em><\/strong><br><strong>while [ True ]; do<\/strong><br><strong>if [ \"$1\" = \"--alpha\" -o \"$1\" = \"-a\" ]; then<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0ALPHA=1<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0shift 1<\/strong><br><strong>else<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0break<\/strong><br><strong>fi<\/strong><br><strong>done<\/strong><br><strong>echo $ALPHA<\/strong><\/code><\/p>\n\n\n\n<p>\u0423 \u0446\u044c\u043e\u043c\u0443 \u043a\u043e\u0434\u0456 \u0441\u0442\u0432\u043e\u0440\u044e\u0454\u043c\u043e <strong>while<\/strong> \u0446\u0438\u043a\u043b. \u0412\u0456\u043d \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0434\u043e \u0442\u0438\u0445 \u043f\u0456\u0440, \u043f\u043e\u043a\u0438 \u043d\u0435 \u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0434\u043b\u044f \u043e\u0431\u0440\u043e\u0431\u043a\u0438. <strong>if <\/strong>\u043d\u0430\u043c\u0430\u0433\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442, \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u0438\u0439 \u0432 \u043f\u0435\u0440\u0448\u0456\u0439 \u043f\u043e\u0437\u0438\u0446\u0456\u0457 ($1) \u0447\u0438 <strong>&#8211;alpha<\/strong> \u0430\u0431\u043e <strong>-a.<\/strong>(\u0426\u0435 \u0434\u043e\u0432\u0456\u043b\u044c\u043d\u0456 \u0456\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432, \u0432\u043e\u043d\u0438 \u043d\u0435 \u043c\u0430\u044e\u0442\u044c \u043e\u0441\u043e\u0431\u043b\u0438\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u0423 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <strong>&#8211;verbose<\/strong> \u0456 <strong>-v<\/strong> \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0434\u043e\u043a\u043b\u0430\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f).<\/p>\n\n\n\n<p>\u041a\u043b\u044e\u0447\u043e\u0432\u0435 \u0441\u043b\u043e\u0432\u043e <strong>shift<\/strong> \u0437\u043c\u0443\u0448\u0443\u0454 \u0432\u0441\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0437\u043c\u0456\u0449\u0430\u0442\u0438\u0441\u044f \u043d\u0430 1, \u0442\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c, \u0449\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0432 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u0456 2($2) \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0430\u0454\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044f 1($1). \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <strong>else <\/strong>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0454\u0442\u044c\u0441\u044f, \u043a\u043e\u043b\u0438 \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435\u043c\u0430\u0454 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u0432 \u0434\u043b\u044f \u043e\u0431\u0440\u043e\u0431\u043a\u0438, \u0449\u043e \u043f\u0435\u0440\u0435\u0440\u0438\u0432\u0430\u044e\u0442\u044c <strong>while<\/strong> \u0446\u0438\u043a\u043b.<\/p>\n\n\n\n<p>\u0412 \u043a\u0456\u043d\u0446\u0456 \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u043d\u0430 \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b \u0432\u0438\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f <strong>$<\/strong>ALPHA.<\/p>\n\n\n\n<p>\u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0443\u0439\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n\n\n\n<p><code><strong>$ bash .\/test.sh --alpha<\/strong><br><strong>1<\/strong><br><strong>$ bash .\/test.sh<\/strong><br><strong>$ bash .\/test.sh -a<\/strong><br><strong>1<\/strong><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0412\u0438\u044f\u0432\u043b\u0435\u043d\u043d\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u0432 \u0432 Bash<\/strong><\/h2>\n\n\n\n<p>\u0406\u0441\u043d\u0443\u0454 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u0437\u0430\u0439\u0432\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0456\u0433\u043d\u043e\u0440\u0443\u044e\u0442\u044c\u0441\u044f.<\/p>\n\n\n\n<p><code><strong>$ bash .\/test.sh --alpha foo<\/strong><br><strong>1<\/strong><br><strong>$<\/strong><\/code><\/p>\n\n\n\n<p>\u0429\u043e\u0431 \u0437\u043b\u043e\u0432\u0438\u0442\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438, \u044f\u043a\u0456 \u043d\u0435 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0456 \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u044f\u043a \u043e\u043f\u0446\u0456\u0457, \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438, \u0449\u043e \u0437\u0430\u043b\u0438\u0448\u0438\u043b\u0438\u0441\u044f \u0432 \u043c\u0430\u0441\u0438\u0432\u0456 Bash. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432\u0432\u0435\u0434\u0456\u0442\u044c:<\/p>\n\n\n\n<p><code><strong><em>#!\/bin\/bash<\/em><\/strong><br><strong>while [ True ]; do<\/strong><br><strong>if [ \"$1\" = \"--alpha\" -o \"$1\" = \"-a\" ]; then<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0ALPHA=1<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0shift 1<\/strong><br><strong>else<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0break<\/strong><br><strong>fi<\/strong><br><strong>done<\/strong><br><strong>echo $ALPHA<\/strong><br><strong>ARG=( \"${@}\" )<\/strong><br><strong>for i in ${ARG[@]}; do<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0echo $i<\/strong><br><strong>done<\/strong><\/code><\/p>\n\n\n\n<p>\u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0443\u0439\u0442\u0435 \u043d\u043e\u0432\u0443 \u0432\u0435\u0440\u0441\u0456\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0443:<\/p>\n\n\n\n<p><code><strong>$ bash .\/test.sh --alpha foo<\/strong><br><strong>1<\/strong><br><strong>foo<\/strong><br><strong>$ bash .\/test.sh foo<\/strong><br><strong>foo<\/strong><br><strong>$ bash .\/test.sh --alpha foo bar<\/strong><br><strong>1<\/strong><br><strong>foo<\/strong><br><strong>bar<\/strong><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/strong><\/h2>\n\n\n\n<p>\u0414\u0435\u044f\u043a\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0432\u0438\u043c\u0430\u0433\u0430\u044e\u0442\u044c \u043e\u043a\u0440\u0435\u043c\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0438 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0435\u0432\u0456 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0432\u0430\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 (\u043a\u043e\u043b\u0456\u0440, \u0434\u043e\u0437\u0432\u0456\u043b \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f) \u0430\u0431\u043e \u0449\u043e\u0441\u044c \u0456\u043d\u0448\u0435.<\/p>\n\n\n\n<p>\u0429\u043e\u0431 \u0440\u0435\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0442\u0438 \u0446\u0435 \u0432 Bash, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <strong>shift<\/strong>, \u044f\u043a \u0456 \u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 \u0437 \u043b\u043e\u0433\u0456\u0447\u043d\u0438\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0438\u043a\u0430\u0447\u0430\u043c\u0438, \u0430\u043b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0441\u043b\u0456\u0434 \u0437\u0440\u0443\u0448\u0438\u0442\u0438 \u043d\u0430 2 \u0437\u0430\u043c\u0456\u0441\u0442\u044c 1.<\/p>\n\n\n\n<p><code><strong><em>#!\/bin\/bash<\/em><\/strong><br><strong>while [ True ]; do<\/strong><br><strong>if [ \"$1\" = \"--alpha\" -o \"$1\" = \"-a\" ]; then<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0ALPHA=1<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0shift 1<\/strong><br><strong>elif [ \"$1\" = \"--config\" -o \"$1\" = \"-c\" ]; then<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0CONFIG=$2<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0shift 2<\/strong><br><strong>else<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0break<\/strong><br><strong>fi<\/strong><br><strong>done<\/strong><br><strong>echo $ALPHA<\/strong><br><strong>echo $CONFIG<\/strong><br><strong>ARG=( \"${@}\" )<\/strong><br><strong>for i in ${ARG[@]}; do<\/strong><br><strong>\u00a0\u00a0\u00a0\u00a0echo $i<\/strong><br><strong>done<\/strong><\/code><\/p>\n\n\n\n<p>\u0412 \u0446\u0435\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 <strong>elif<\/strong> \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u044e \u0434\u043b\u044f \u043f\u043e\u0440\u0456\u0432\u043d\u044f\u043d\u043d\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u0432 <strong>&#8211;config<\/strong> \u0456 <strong>-c.<\/strong>\u0423 \u0440\u0430\u0437\u0456 \u0437\u0431\u0456\u0433\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u0437 \u0456\u043c&#8217;\u044f\u043c, <strong>CONFIG<\/strong> \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454\u0442\u044c\u0441\u044f \u0440\u0456\u0432\u043d\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443 (\u0446\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e \u0434\u043b\u044f <strong>&#8211;config<\/strong> \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442). \u0412\u0441\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0437\u0441\u0443\u0432\u0430\u044e\u0442\u044c\u0441\u044f \u043d\u0430 2: 1 \u2014 \u0449\u043e\u0431 \u0437\u0440\u0443\u0448\u0438\u0442\u0438 &nbsp;<strong>&#8211;config<\/strong> \u0430\u0431\u043e <strong>-c,<\/strong><strong> <\/strong>\u0456 1 \u2014 \u0449\u043e\u0431 \u043f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u0441\u0432\u0456\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439, \u0446\u0438\u043a\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0454\u0442\u044c\u0441\u044f \u0434\u043e \u0442\u0438\u0445 \u043f\u0456\u0440, \u043f\u043e\u043a\u0438 \u043d\u0435 \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u044c\u0441\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u0432, \u0449\u043e \u0437\u0431\u0456\u0433\u0430\u044e\u0442\u044c\u0441\u044f.<\/p>\n\n\n\n<p>\u041e\u0441\u044c \u0442\u0435\u0441\u0442 \u043d\u043e\u0432\u043e\u0457 \u0432\u0435\u0440\u0441\u0456\u0457 \u0441\u043a\u0440\u0438\u043f\u0442\u0443:<\/p>\n\n\n\n<p><code><strong>$ bash .\/test.sh --config my.conf foo bar<\/strong><br><strong>my.conf<\/strong><br><strong>foo<\/strong><br><strong>bar<\/strong><br><strong>$ bash .\/test.sh -a --config my.conf baz<\/strong><br><strong>1<\/strong><br><strong>my.conf<\/strong><br><strong>baz<\/strong><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u041f\u0456\u0434\u0441\u0443\u043c\u043e\u043a<\/strong><\/h2>\n\n\n\n<p>\u0404 \u0439 \u0456\u043d\u0448\u0456 \u0441\u043f\u043e\u0441\u043e\u0431\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u0432 Bash. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e \u0447\u0435\u0440\u0437\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <strong>case<\/strong> \u0430\u0431\u043e <strong>getopt.<\/strong> \u0429\u043e \u0431 \u0432\u0438 \u043d\u0435 \u0432\u0438\u0431\u0440\u0430\u043b\u0438, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u0454 \u0432\u0430\u0436\u043b\u0438\u0432\u0438\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0456\u044f\u043c\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u0457 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438, \u0456 Bash \u0441\u043f\u0440\u043e\u0449\u0443\u0454 \u0457\u0445 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0430\u0431\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438 Bash \u2014 \u0446\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0438\u0439 \u0444\u0430\u0439\u043b \u0437 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434, \u0449\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u043a\u043e\u043d\u0430\u0442\u0438 \u0432 \u043f\u0435\u0432\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0456\/\u0430\u0431\u043e \u0437\u0430 \u043f\u0435\u0432\u043d\u0438\u043c\u0438 \u0443\u043c\u043e\u0432\u0430\u043c\u0438. \u0412\u0456\u043d \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456 Linux \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u043b\u0438 \u0431\u0430\u0433\u0430\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434. \u0420\u043e\u0437\u0433\u043b\u044f\u043d\u044c\u043c\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u0432 Bash. * Bash \u2014 \u043d\u0430\u0439\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0456\u0448\u0438\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u0439 \u0456\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0432 Unix-\u043f\u043e\u0434\u0456\u0431\u043d\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0437\u043e\u043a\u0440\u0435\u043c\u0430 GNU\/Linux.&nbsp; \u041f\u0430\u0440\u0441\u0438\u043d\u0433 \u043e\u043f\u0446\u0456\u0439 \u0432 Bash \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0456\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u043e\u043f\u0446\u0456\u0439 \u0432&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[352],"tags":[320,84,316],"class_list":["post-30207","post","type-post","status-publish","format-standard","hentry","category-guides","tag-bash-script","tag-bash","tag-gnu-linux"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"uk","enabled_languages":["uk"],"languages":{"uk":{"title":true,"content":true,"excerpt":false}}},"acf":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/comments?post=30207"}],"version-history":[{"count":6,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30207\/revisions"}],"predecessor-version":[{"id":35576,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30207\/revisions\/35576"}],"wp:attachment":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media?parent=30207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/categories?post=30207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/tags?post=30207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}