{"id":467666,"date":"2025-07-18T23:58:08","date_gmt":"2025-07-18T23:58:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=467666"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=467666","title":{"rendered":"<span>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 R<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6c0\/caf\/ad7\/6c0cafad7b8a87c963ff43ef76a1ab91.png\" width=\"738\" height=\"338\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/6c0\/caf\/ad7\/6c0cafad7b8a87c963ff43ef76a1ab91.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6c0\/caf\/ad7\/6c0cafad7b8a87c963ff43ef76a1ab91.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>\u041f\u0440\u043e\u043b\u043e\u0433<\/strong><\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e, \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438 API. \u041a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 <\/p>\n<blockquote>\n<p>\u0421\u0434\u0435\u043b\u0430\u0439 \u043f\u043e \u043e\u0431\u0440\u0430\u0437\u0443 \u0438 \u043f\u043e\u0434\u043e\u0431\u0438\u044e<\/p>\n<\/blockquote>\n<p>\u0412\u043e\u0442 \u0432\u0430\u043c \u044f\u0440\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u041d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 SPI \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 UART. \u0427\u0442\u043e\u0431\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 HAL \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%BE_%D0%BD%D0%B0%D0%B8%D0%BC%D0%B5%D0%BD%D1%8C%D1%88%D0%B5%D0%B3%D0%BE_%D1%83%D0%B4%D0%B8%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F\" rel=\"noopener noreferrer nofollow\"><strong>\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044f<\/strong><\/a><strong>.<\/strong><\/p>\n<p><strong>\u0412 \u0447\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430?<\/strong><\/p>\n<p>\u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u0411\u0435\u0440\u0443\u0442 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 UART \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u043e\u0432\u043e UART \u043d\u0430 SPI \u0438 \u0434\u0430\u043b\u0435\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u044d\u0442\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0440\u0443\u0442\u0438\u043d\u043d\u0430\u044f \u0438 \u0443\u0442\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0435\u0451 \u043a\u0430\u043a-\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p><strong>\u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f<\/strong><\/p>\n<p><strong>\u0442\u043e\u043a\u0435\u043d <\/strong>&#8212; \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u0430<\/p>\n<p><strong>\u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c<\/strong> &#8212; \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c  <\/p>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/p>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 r.exe, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u0434\u043d\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (\u0442\u043e\u043a\u0435\u043d) \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (\u0442\u043e\u043a\u0435\u043d) \u0432 \u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0437\u0432\u0430\u043b\u0438 \u044d\u0442\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 r<\/p>\n<p>1&#8212;\u043f\u0440\u0438 \u0437\u0430\u043c\u0435\u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0432 \u0442\u043e\u043a\u0435\u043d\u0435<\/p>\n<p>2&#8212;\u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u0430<\/p>\n<p>3&#8212;\u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u043e\u0439 r, \u0447\u0442\u043e\u0431\u044b \u0435\u0451 \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c (rename all) \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c<\/p>\n<p>4&#8212;\u0423 \u0443\u0442\u0438\u043b\u0438\u0442\u044b r \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430 old new<\/p>\n<pre><code class=\"bash\">--&gt;    r old_word new_word<\/code><\/pre>\n<p><strong>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f.<\/strong><\/p>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0435\u0441\u0442\u044c bash \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u0443 . <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1 \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u0444\u0430\u0439\u043b\u0430\u0445<\/strong><\/p>\n<p>1&#8212;\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043b\u043e\u0432\u043e\u00a0<strong>oldtext <\/strong>\u043d\u0430\u00a0<strong>newtext <\/strong>\u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438.  <\/p>\n<pre><code class=\"bash\">grep -rl oldtext . | xargs sed -i 's\/oldtext\/newtext\/g'  \u0438\u043b\u0438 \u0442\u0430\u043a find . -type f -exec sed -i 's\/odtext\/newtext\/g' {} +<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0434\u043b\u044f grep -r \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043e\u043a \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e, -l \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u0438 \u043a \u0444\u0430\u0439\u043b\u0430\u043c. \u0414\u043b\u044f sed -i \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0430 \u0441\u043b\u043e\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u044d\u0442\u043e\u043c \u0436\u0435 \u0444\u0430\u0439\u043b\u0435 (in place), s \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0442\u043e\u043a\u0435\u043d, \u0444\u043b\u0430\u0433 g \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430.  <\/p>\n<p>\u0423 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0435\u0441\u0442\u044c \u0442\u0440\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430:  <\/p>\n<p>1&#8212;\u0442\u043e\u043a\u0435\u043d oldtext  \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0440\u0430\u0437\u0430<\/p>\n<p>2&#8212;\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0438 \u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c <\/p>\n<p>3&#8212;\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0438 \u0435\u0435 \u0434\u043e\u043b\u0433\u043e \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2: \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 <\/strong><\/p>\n<p>&#8212;\u0412\u0437\u044f\u0442\u044c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 at24c02mtr \u043d\u0430 at24cxx<\/p>\n<pre><code class=\"cpp\">find . -type f -exec rename -v at24c02mtr at24cxx {} \\;<\/code><\/pre>\n<p>\u042d\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e \u043e\u0431\u0440\u0430\u0437\u0443 \u0438 \u043f\u043e\u0434\u043e\u0431\u0438\u044e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 (find+rename)<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b59\/807\/53c\/b5980753cb5e20182915b7617d36466d.png\" width=\"701\" height=\"254\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/b59\/807\/53c\/b5980753cb5e20182915b7617d36466d.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b59\/807\/53c\/b5980753cb5e20182915b7617d36466d.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/strong><\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0442\u0443\u0442 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u0435\u043b\u0430\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b sed, grep,  find \u0438 rename<\/p>\n<pre><code class=\"cpp\">#include \"sed.h\"  #include &lt;stdio.h&gt; #include &lt;string.h&gt;  #include \"log.h\" #include \"win_utils.h\"  char* getcwd(char* buf, size_t size);   bool win_cmd_run(const char* const command) {     bool res = false;     if(command) {         LOG_DEBUG(PC, \"ExeCmd:[%s],Size:%u\", command, strlen(command));         int ret = system(command);         if(0 == ret) {             res = true;         } else {             LOG_ERROR(PC, \"Ret,%d=%s\", ret, CmdRetToStr(ret));         }     }     return res; }  bool sed_replace(const char* const old, const char* const new) {     bool res = false;     if(old) {         if(new) {             LOG_INFO(SED, \"Replace:[%s]-&gt;[%s]\", old, new);             char CurDir[500] = {0};             char* str = getcwd(CurDir, sizeof(CurDir));             if(str) {                 LOG_INFO(SED, \"Current working dir: %s\\n\", CurDir);             } else {                 LOG_ERROR(SED, \"getcwd() error\");             }              char replaceToken[1000] = {0};             char format[100] = \"grep -rl %s . | xargs sed -i 's\/%s\/%s\/g'\";             snprintf(replaceToken, sizeof(replaceToken), format, old, old, new);             LOG_INFO(SED, \"CMD,replaceToken:[%s]\", replaceToken);             res = win_cmd_run(replaceToken);             log_res(SED, res, \"CmdT\");              char repl_file[1000] = {0};             char formatF[100] = \"find . -type f -exec rename -v %s %s {} \\;\";             snprintf(repl_file, sizeof(repl_file), formatF, old, new);             LOG_INFO(SED, \"CMD,ReplaceFileName:[%s]\", repl_file);             res = win_cmd_run(repl_file);             log_res(SED, res, \"CmdF\");         }     }     return res; } <\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0442\u0438\u043b\u0438\u0442\u044b r<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 r.exe<\/p>\n<pre><code class=\"bash\">C:\\workspace\\code_base\\source\\mcal\\mcal_yuntu\\uart1&gt;r uart spi I,[SYS] argc 3 I,[SYS] Arg0 [r] I,[SYS] Arg1 [uart] I,[SYS] Arg2 [spi] I,[Sed] Replace:[uart]-&gt;[spi] I,[Sed] Current working dir: C:\\workspace\\code_base\\source\\mcal\\mcal_yuntu\\uart1 I,[Sed] CMD,replaceToken:[grep -rl uart . | xargs sed -i 's\/uart\/spi\/g'] I,[Sed] CMD,ReplaceFileName:[find . -type f -exec rename -v uart spi {} ;] `.\/uart.gvi' -&gt; `.\/spi.gvi' `.\/uart.mk' -&gt; `.\/spi.mk' `.\/uart_custom_commands.c' -&gt; `.\/spi_custom_commands.c' `.\/uart_custom_commands.h' -&gt; `.\/spi_custom_commands.h' `.\/uart_custom_const.h' -&gt; `.\/spi_custom_const.h' `.\/uart_custom_diag.h' -&gt; `.\/spi_custom_diag.h' `.\/uart_custom_drv.h' -&gt; `.\/spi_custom_drv.h' `.\/uart_custom_isr.c' -&gt; `.\/spi_custom_isr.c' `.\/uart_custom_isr.h' -&gt; `.\/spi_custom_isr.h' `.\/uart_custom_types.h' -&gt; `.\/spi_custom_types.h' `.\/uart_drv_old21.c' -&gt; `.\/spi_drv_old21.c' `.\/uart_mcal.c' -&gt; `.\/spi_mcal.c' `.\/uart_preconfig.mk' -&gt; `.\/spi_preconfig.mk' `.\/uart_verify.txt' -&gt; `.\/spi_verify.txt'  C:\\workspace\\code_base\\source\\mcal\\mcal_yuntu\\uart1&gt;<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 <a href=\"https:\/\/github.com\/aabzel\/Artifacts\/blob\/main\/r.exe\" rel=\"noopener noreferrer nofollow\">\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b <\/a>\u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a \u043d\u0435\u0439 \u043f\u0443\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e PATH.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong><\/p>\n<p>\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0430\u0432\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044b \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f <strong>\u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/strong> \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.<\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438. \u042d\u0442\u043e \u0435\u0449\u0451 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0430\u043c\u0438\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0414\u0430&#8230; \u042d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b loader-\u044b, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0439, \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f \u043a \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b r, \u0442\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>URL<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0412\u044b\u0437\u043e\u0432\u0430 \u0423\u0442\u0438\u043b\u0438\u0442 \u041a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0421\u0442\u0440\u043e\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/754858\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/754858\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0411\u0438\u043d\u0430\u0440\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b r.exe<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aabzel\/Artifacts\/blob\/main\/r.exe\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/aabzel\/Artifacts\/blob\/main\/r.exe<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439-\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u041d\u0430\u043b\u0438\u0447\u0438\u044f \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0432 \u041a\u043e\u043d\u0446\u0435 \u0424\u0438\u0433\u0443\u0440\u043d\u043e\u0439 \u0421\u043a\u043e\u0431\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/865536\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/865536\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 static \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/846020\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/846020\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/844436\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/844436\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0412\u0435\u0440\u0441\u0438\u0438 \u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/791768\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/791768\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">C Language: system function (Perform Operating System Command)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.techonthenet.com\/c_language\/standard_library_functions\/stdlib_h\/system.php\" rel=\"noopener noreferrer nofollow\">https:\/\/www.techonthenet.com\/c_language\/standard_library_functions\/stdlib_h\/system.php<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/869458\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u0441\u0442\u0430\u043d\u0435\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 r.exe?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">1.82% <\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">1<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 1.82%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">98.18% <\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">54<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 98.18%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 55 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 9 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/869458\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0412\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u043c\u0438 grep find sed?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">82.14% <\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">46<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 82.14%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">17.86% <\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">10<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 17.86%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 56 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 5 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/869458\/\"> https:\/\/habr.com\/ru\/articles\/869458\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u041f\u0440\u043e\u043b\u043e\u0433<\/strong><\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e, \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438 API. \u041a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 <\/p>\n<blockquote>\n<p>\u0421\u0434\u0435\u043b\u0430\u0439 \u043f\u043e \u043e\u0431\u0440\u0430\u0437\u0443 \u0438 \u043f\u043e\u0434\u043e\u0431\u0438\u044e<\/p>\n<\/blockquote>\n<p>\u0412\u043e\u0442 \u0432\u0430\u043c \u044f\u0440\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u041d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 SPI \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 UART. \u0427\u0442\u043e\u0431\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 HAL \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%BE_%D0%BD%D0%B0%D0%B8%D0%BC%D0%B5%D0%BD%D1%8C%D1%88%D0%B5%D0%B3%D0%BE_%D1%83%D0%B4%D0%B8%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F\" rel=\"noopener noreferrer nofollow\"><strong>\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044f<\/strong><\/a><strong>.<\/strong><\/p>\n<p><strong>\u0412 \u0447\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430?<\/strong><\/p>\n<p>\u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u0411\u0435\u0440\u0443\u0442 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 UART \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u043e\u0432\u043e UART \u043d\u0430 SPI \u0438 \u0434\u0430\u043b\u0435\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u044d\u0442\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0440\u0443\u0442\u0438\u043d\u043d\u0430\u044f \u0438 \u0443\u0442\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0435\u0451 \u043a\u0430\u043a-\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p><strong>\u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f<\/strong><\/p>\n<p><strong>\u0442\u043e\u043a\u0435\u043d <\/strong>&#8212; \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u0430<\/p>\n<p><strong>\u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c<\/strong> &#8212; \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c  <\/p>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/p>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 r.exe, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u0434\u043d\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (\u0442\u043e\u043a\u0435\u043d) \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (\u0442\u043e\u043a\u0435\u043d) \u0432 \u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0437\u0432\u0430\u043b\u0438 \u044d\u0442\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 r<\/p>\n<p>1&#8212;\u043f\u0440\u0438 \u0437\u0430\u043c\u0435\u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0432 \u0442\u043e\u043a\u0435\u043d\u0435<\/p>\n<p>2&#8212;\u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u0430<\/p>\n<p>3&#8212;\u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u043e\u0439 r, \u0447\u0442\u043e\u0431\u044b \u0435\u0451 \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c (rename all) \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c<\/p>\n<p>4&#8212;\u0423 \u0443\u0442\u0438\u043b\u0438\u0442\u044b r \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430 old new<\/p>\n<pre><code class=\"bash\">--&gt;    r old_word new_word<\/code><\/pre>\n<p><strong>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f.<\/strong><\/p>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0435\u0441\u0442\u044c bash \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u0443 . <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1 \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u0444\u0430\u0439\u043b\u0430\u0445<\/strong><\/p>\n<p>1&#8212;\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043b\u043e\u0432\u043e\u00a0<strong>oldtext <\/strong>\u043d\u0430\u00a0<strong>newtext <\/strong>\u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438.  <\/p>\n<pre><code class=\"bash\">grep -rl oldtext . | xargs sed -i 's\/oldtext\/newtext\/g'  \u0438\u043b\u0438 \u0442\u0430\u043a find . -type f -exec sed -i 's\/odtext\/newtext\/g' {} +<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0434\u043b\u044f grep -r \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043e\u043a \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e, -l \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u0438 \u043a \u0444\u0430\u0439\u043b\u0430\u043c. \u0414\u043b\u044f sed -i \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0430 \u0441\u043b\u043e\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u044d\u0442\u043e\u043c \u0436\u0435 \u0444\u0430\u0439\u043b\u0435 (in place), s \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0442\u043e\u043a\u0435\u043d, \u0444\u043b\u0430\u0433 g \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430.  <\/p>\n<p>\u0423 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0435\u0441\u0442\u044c \u0442\u0440\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430:  <\/p>\n<p>1&#8212;\u0442\u043e\u043a\u0435\u043d oldtext  \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0440\u0430\u0437\u0430<\/p>\n<p>2&#8212;\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0438 \u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c <\/p>\n<p>3&#8212;\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0438 \u0435\u0435 \u0434\u043e\u043b\u0433\u043e \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2: \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 <\/strong><\/p>\n<p>&#8212;\u0412\u0437\u044f\u0442\u044c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 at24c02mtr \u043d\u0430 at24cxx<\/p>\n<pre><code class=\"cpp\">find . -type f -exec rename -v at24c02mtr at24cxx {} \\;<\/code><\/pre>\n<p>\u042d\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e \u043e\u0431\u0440\u0430\u0437\u0443 \u0438 \u043f\u043e\u0434\u043e\u0431\u0438\u044e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 (find+rename)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/strong><\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0442\u0443\u0442 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u0435\u043b\u0430\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b sed, grep,  find \u0438 rename<\/p>\n<pre><code class=\"cpp\">#include \"sed.h\"  #include &lt;stdio.h&gt; #include &lt;string.h&gt;  #include \"log.h\" #include \"win_utils.h\"  char* getcwd(char* buf, size_t size);   bool win_cmd_run(const char* const command) {     bool res = false;     if(command) {         LOG_DEBUG(PC, \"ExeCmd:[%s],Size:%u\", command, strlen(command));         int ret = system(command);         if(0 == ret) {             res = true;         } else {             LOG_ERROR(PC, \"Ret,%d=%s\", ret, CmdRetToStr(ret));         }     }     return res; }  bool sed_replace(const char* const old, const char* const new) {     bool res = false;     if(old) {         if(new) {             LOG_INFO(SED, \"Replace:[%s]-&gt;[%s]\", old, new);             char CurDir[500] = {0};             char* str = getcwd(CurDir, sizeof(CurDir));             if(str) {                 LOG_INFO(SED, \"Current working dir: %s\\n\", CurDir);             } else {                 LOG_ERROR(SED, \"getcwd() error\");             }              char replaceToken[1000] = {0};             char format[100] = \"grep -rl %s . | xargs sed -i 's\/%s\/%s\/g'\";             snprintf(replaceToken, sizeof(replaceToken), format, old, old, new);             LOG_INFO(SED, \"CMD,replaceToken:[%s]\", replaceToken);             res = win_cmd_run(replaceToken);             log_res(SED, res, \"CmdT\");              char repl_file[1000] = {0};             char formatF[100] = \"find . -type f -exec rename -v %s %s {} \\;\";             snprintf(repl_file, sizeof(repl_file), formatF, old, new);             LOG_INFO(SED, \"CMD,ReplaceFileName:[%s]\", repl_file);             res = win_cmd_run(repl_file);             log_res(SED, res, \"CmdF\");         }     }     return res; } <\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0442\u0438\u043b\u0438\u0442\u044b r<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 r.exe<\/p>\n<pre><code class=\"bash\">C:\\workspace\\code_base\\source\\mcal\\mcal_yuntu\\uart1&gt;r uart spi I,[SYS] argc 3 I,[SYS] Arg0 [r] I,[SYS] Arg1 [uart] I,[SYS] Arg2 [spi] I,[Sed] Replace:[uart]-&gt;[spi] I,[Sed] Current working dir: C:\\workspace\\code_base\\source\\mcal\\mcal_yuntu\\uart1 I,[Sed] CMD,replaceToken:[grep -rl uart . | xargs sed -i 's\/uart\/spi\/g'] I,[Sed] CMD,ReplaceFileName:[find . -type f -exec rename -v uart spi {} ;] `.\/uart.gvi' -&gt; `.\/spi.gvi' `.\/uart.mk' -&gt; `.\/spi.mk' `.\/uart_custom_commands.c' -&gt; `.\/spi_custom_commands.c' `.\/uart_custom_commands.h' -&gt; `.\/spi_custom_commands.h' `.\/uart_custom_const.h' -&gt; `.\/spi_custom_const.h' `.\/uart_custom_diag.h' -&gt; `.\/spi_custom_diag.h' `.\/uart_custom_drv.h' -&gt; `.\/spi_custom_drv.h' `.\/uart_custom_isr.c' -&gt; `.\/spi_custom_isr.c' `.\/uart_custom_isr.h' -&gt; `.\/spi_custom_isr.h' `.\/uart_custom_types.h' -&gt; `.\/spi_custom_types.h' `.\/uart_drv_old21.c' -&gt; `.\/spi_drv_old21.c' `.\/uart_mcal.c' -&gt; `.\/spi_mcal.c' `.\/uart_preconfig.mk' -&gt; `.\/spi_preconfig.mk' `.\/uart_verify.txt' -&gt; `.\/spi_verify.txt'  C:\\workspace\\code_base\\source\\mcal\\mcal_yuntu\\uart1&gt;<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 <a href=\"https:\/\/github.com\/aabzel\/Artifacts\/blob\/main\/r.exe\" rel=\"noopener noreferrer nofollow\">\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b <\/a>\u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a \u043d\u0435\u0439 \u043f\u0443\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e PATH.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong><\/p>\n<p>\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0430\u0432\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044b \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f <strong>\u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/strong> \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.<\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438. \u042d\u0442\u043e \u0435\u0449\u0451 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0430\u043c\u0438\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0414\u0430&#8230; \u042d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b loader-\u044b, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0439, \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f \u043a \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b r, \u0442\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>URL<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0412\u044b\u0437\u043e\u0432\u0430 \u0423\u0442\u0438\u043b\u0438\u0442 \u041a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0421\u0442\u0440\u043e\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/754858\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/754858\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0411\u0438\u043d\u0430\u0440\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b r.exe<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aabzel\/Artifacts\/blob\/main\/r.exe\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/aabzel\/Artifacts\/blob\/main\/r.exe<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439-\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u041d\u0430\u043b\u0438\u0447\u0438\u044f \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0432 \u041a\u043e\u043d\u0446\u0435 \u0424\u0438\u0433\u0443\u0440\u043d\u043e\u0439 \u0421\u043a\u043e\u0431\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/865536\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/865536\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 static \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/846020\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/846020\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/844436\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/844436\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0412\u0435\u0440\u0441\u0438\u0438 \u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/791768\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/791768\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"322\" width=\"322\">\n<p align=\"left\">C Language: system function (Perform Operating System Command)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.techonthenet.com\/c_language\/standard_library_functions\/stdlib_h\/system.php\" rel=\"noopener noreferrer nofollow\">https:\/\/www.techonthenet.com\/c_language\/standard_library_functions\/stdlib_h\/system.php<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/869458\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u0441\u0442\u0430\u043d\u0435\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 r.exe?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">1.82% <\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">1<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 1.82%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">98.18% <\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">54<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 98.18%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 55 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 9 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/869458\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0412\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u043c\u0438 grep find sed?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">82.14% <\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">46<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 82.14%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">17.86% <\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">10<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 17.86%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 56 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 5 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/869458\/\"> https:\/\/habr.com\/ru\/articles\/869458\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-467666","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467666"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467666\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}