{"id":333745,"date":"2022-05-27T15:02:13","date_gmt":"2022-05-27T15:02:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=333745"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=333745","title":{"rendered":"<span>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 SED \u0432 Linux\/Unix \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/667490\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ru\/0g\/cn\/ru0gcn3hurbqakyomydzdh42m8e.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ru\/0g\/cn\/ru0gcn3hurbqakyomydzdh42m8e.png\"\/><\/div>\n<p><\/a><br \/>  \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u043c\u0435\u0436\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>sed<\/code> \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u0437\u0430\u043c\u0435\u043d\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u0418\u0434\u0435\u044e \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0439\u0434\u0430 <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/665852\/#comment_24365958\">\u043f\u043e\u0434\u0430\u043b<\/a> \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a <a href=\"https:\/\/habr.com\/ru\/users\/nronnie\/\" class=\"user_link\">nronnie<\/a> \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/665852\/\">\u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Bash<\/a>.<a name=\"habracut\"><\/a><\/p>\n<p>  SED \u2013 \u044d\u0442\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430 (\u043e\u0442 <b><font color=\"#3AC1EF\">s<\/font><\/b>tream <b><font color=\"#3AC1EF\">ed<\/font><\/b>itor), c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0440\u043e\u0434\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u0437\u0430\u043c\u0435\u043d\u044b, \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u0437\u0430\u043c\u0435\u043d\u044b.<\/p>\n<p>  SED \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u0447\u0435\u043c \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u043e\u0433\u043e \u0436\u0435 vi. \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e, SED \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432.<\/p>\n<p>  \u041e\u0431\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>sed<\/code> \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">sed OPTIONS... [SCRIPT] [INPUTFILE...] <\/code><\/pre>\n<p>  \u0421\u0430\u043c\u0438 \u0436\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043e\u0442\u0440\u044b\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430:<\/p>\n<pre><code class=\"bash\">$cat > geekfile.txt<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"markdown\">unix is great os. unix is opensource. unix is free os. learn operating system. unix linux which one you choose. unix is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  <\/p>\n<h2><font color=\"#3AC1EF\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434<\/font><\/h2>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">1. \u0417\u0430\u043c\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/font><\/h3>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430 <code>unix<\/code> \u043d\u0430 <code>linux<\/code>:<\/p>\n<pre><code class=\"bash\">$sed 's\/unix\/linux\/' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">linux is great os. unix is opensource. unix is free os. learn operating system. linux linux which one you choose. linux is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c <code>s<\/code> \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0437\u0430\u043c\u0435\u043d\u044b, \u0430 \u043f\u0440\u044f\u043c\u044b\u0435 \u0441\u043b\u044d\u0448\u0438 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f\u043c\u0438. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u043a\u043e\u043c\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>unix<\/code>, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0435\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u044b <code>linux<\/code>.<\/p>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>sed<\/code> \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044f \u0432\u0442\u043e\u0440\u043e\u0435, \u0442\u0440\u0435\u0442\u044c\u0435 \u0438 \u0442.\u0434.<\/p>\n<h3><font color=\"#3AC1EF\">2. \u0417\u0430\u043c\u0435\u043d\u0430 n-\u043e\u0433\u043e \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435<\/font><\/h3>\n<p>  \u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u043b\u0430\u0433\u043e\u0432 <code>\/1<\/code>, <code>\/2<\/code> \u0438 \u0442.\u0434. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u0442\u043e\u0440\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"bash\">$sed 's\/unix\/linux\/2' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">unix is great os. linux is opensource. unix is free os. learn operating system. unix linux which one you choose. unix is easy to learn.linux is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">3. \u0417\u0430\u043c\u0435\u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435<\/font><\/h3>\n<p>  \u0414\u044f \u0437\u0430\u043c\u0435\u043d\u044b \u0432\u0441\u0435\u0445 \u0431\u0435\u0437 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u043b\u0430\u0433 <code>\/g<\/code>:<\/p>\n<pre><code class=\"bash\">$sed 's\/unix\/linux\/g' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">linux is great os. linux is opensource. linux is free os. learn operating system. linux linux which one you choose. linux is easy to learn.linux is a multiuser os.Learn linux .linux is a powerful.<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">4. \u0417\u0430\u043c\u0435\u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 n-\u043e\u0433\u043e<\/font><\/h3>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c, \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0444\u043b\u0430\u0433\u043e\u043c <code>g<\/code>. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0442\u0440\u0435\u0442\u044c\u0435, \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0435 \u0438 \u0442.\u0434. \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430 <code>unix<\/code> \u043d\u0430 \u0441\u043b\u043e\u0432\u043e <code>linux<\/code>:<\/p>\n<pre><code class=\"bash\">$sed 's\/unix\/linux\/3g' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">unix is great os. unix is opensource. linux is free os. learn operating system. unix linux which one you choose. unix is easy to learn.unix is a multiuser os.Learn linux .linux is a powerful.<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">5. \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u043b\u043e\u0432 \u0432 \u0441\u043a\u043e\u0431\u043a\u0438<\/font><\/h3>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442 \u0432 \u0441\u043a\u043e\u0431\u043a\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430:<\/p>\n<pre><code class=\"bash\">$ echo \"Welcome To The Geek Stuff\" | sed 's\/\\(\\b[A-Z]\\)\/\\(\\1\\)\/g'<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"bash\">(W)elcome (T)o (T)he (G)eek (S)tuff<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">6. \u0417\u0430\u043c\u0435\u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435<\/font><\/h3>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>sed<\/code> \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439:<\/p>\n<pre><code class=\"bash\">$sed '3 s\/unix\/linux\/' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">unix is great os. unix is opensource. unix is free os. learn operating system. linux linux which one you choose. unix is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  \u0412\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435.<\/p>\n<h3><font color=\"#3AC1EF\">7. \u0414\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445 \u0441\u0442\u0440\u043e\u043a<\/font><\/h3>\n<p>  \u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0444\u043b\u0430\u0433\u0430 <code>\/p<\/code> \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0433\u0434\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0437\u0430\u043c\u0435\u043d\u0443. \u0421\u0442\u0440\u043e\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0441\u043a\u043e\u043c\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<\/p>\n<pre><code class=\"bash\">$sed 's\/unix\/linux\/p' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">linux is great os. unix is opensource. unix is free os. linux is great os. unix is opensource. unix is free os. learn operating system. linux linux which one you choose. linux linux which one you choose. linux is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful. linux is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">8. \u0412\u044b\u0432\u043e\u0434 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u0441 \u0437\u0430\u043c\u0435\u043d\u043e\u0439<\/font><\/h3>\n<p>  \u0415\u0441\u043b\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u0444\u043b\u0430\u0433\u043e\u043c <code>\/p<\/code> \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u044e\u0447 <code>-n<\/code>, \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u0438, \u0433\u0434\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u043d\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>-n<\/code> \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0444\u043b\u0430\u0433\u0430 <code>\/p<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0443.<\/p>\n<pre><code class=\"bash\">$sed -n 's\/unix\/linux\/p' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">linux is great os. unix is opensource. unix is free os. linux linux which one you choose. linux is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e <code>-n<\/code>, \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0432 <code>\/p<\/code>, \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0451\u0442.<\/p>\n<h3><font color=\"#3AC1EF\">9. \u0417\u0430\u043c\u0435\u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u0441\u0442\u0440\u043e\u043a<\/font><\/h3>\n<p>  <code>sed<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u0442\u0440\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<pre><code class=\"bash\">$sed '1,3 s\/unix\/linux\/' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">linux is great os. unix is opensource. unix is free os. learn operating system. linux linux which one you choose. unix is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful.<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c <code>sed<\/code> \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0437\u0430\u043c\u0435\u043d\u0443 \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0441 1 \u043f\u043e 3. \u0410 \u0432\u043e\u0442 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"bash\">$sed '2,$ s\/unix\/linux\/' geekfile.txt<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"markdown\">unix is great os. unix is opensource. unix is free os. learn operating system. linux linux which one you choose. linux is easy to learn.unix is a multiuser os.Learn unix .unix is a powerful<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c <code>$<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0444\u0430\u0439\u043b\u0430, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0447\u0435\u043c <code>sed<\/code> \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u0435\u0439.<\/p>\n<h3><font color=\"#3AC1EF\">10. \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438\u0437 \u0444\u0430\u0439\u043b\u0430<\/font><\/h3>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>sed<\/code> \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p>  <font color=\"#3AC1EF\">10.1<\/font> \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 n-\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>$ sed 'nd' filename.txt<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>$ sed '5d' filename.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">10.2<\/font> \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>$ sed '$d' filename.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">10.3<\/font> \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0441 x> \u043f\u043e y:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>$ sed 'x,yd' filename.txt<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>$ sed '3,6d' filename.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">10.4<\/font> \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0441 n-\u043e\u0439 \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>$ sed 'n,$d' filename.txt<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>$ sed '12,$d' filename.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">10.5<\/font> \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>$ sed '\/pattern\/d' filename.txt<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>$ sed '\/abc\/d' filename.txt<\/code><\/p>\n<h2><font color=\"#3AC1EF\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434 (\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435)<\/font><\/h2>\n<p>  \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u0441\u0435\u0440\u0438\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>sed<\/code> \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, <i>a.txt<\/i>. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043b\u0438\u0448\u043d\u0435 \u043d\u0435 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e, \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434 \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0441\u043e\u0437\u0434\u0430\u0432 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0444\u0430\u0439\u043b \u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c.<\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# cat a.txt<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"markdown\">life isn't meant to be easy, life is meant to be lived. Try to learn &amp; understand something new everyday in life. Respect everyone &amp; most important love everyone. Don\u2019t hesitate to ask for love &amp; don\u2019t hesitate to show love too. Life is too short to be shy. In life, experience will help you differentiating right from wrong.<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\/\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u0443\u0441\u0442\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435<\/font><\/h3>\n<p>  <font color=\"#3AC1EF\">1.<\/font> \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0434\u043d\u0443 \u043f\u0443\u0441\u0442\u0443\u044e:<\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# sed G a.txt <\/code><\/pre>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/xp\/u7\/zi\/xpu7zibhbhdbw7-lkbpvegia4_c.png\" data-src=\"https:\/\/habrastorage.org\/webt\/xp\/u7\/zi\/xpu7zibhbhdbw7-lkbpvegia4_c.png\"\/><\/div>\n<p>  <font color=\"#3AC1EF\">2.<\/font> \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# sed 'G;G' a.txt<\/code><\/pre>\n<p>  <font color=\"#3AC1EF\">3.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439: <\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# sed '\/^$\/d;G' a.txt<\/code><\/pre>\n<p>  <font color=\"#3AC1EF\">4.<\/font> \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430\u0434 \u043a\u0430\u0436\u0434\u043e\u0439, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 <code>love<\/code>:<\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# sed '\/love\/{x;p;x;}' a.txt<\/code><\/pre>\n<p>  <font color=\"#3AC1EF\">5.<\/font> \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 <code>love<\/code>: <\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# sed '\/love\/G' a.txt<\/code><\/pre>\n<p>  <font color=\"#3AC1EF\">6.<\/font> \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c 5 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"bash\">[root@rhel7 ~]# sed 's\/^\/     \/' a.txt<\/code><\/pre>\n<p>  <\/p>\n<h3><font color=\"#3AC1EF\">\u041d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u043a<\/font><\/h3>\n<p>  <font color=\"#3AC1EF\">1.<\/font> \u041f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0444\u0430\u0439\u043b\u0430 (\u0441 \u043b\u0435\u0432\u044b\u043c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435\u043c).<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0441\u0438\u043c\u0432\u043e\u043b <code>=<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u0438, \u0430 \u0444\u043b\u0430\u0433 <code>\\t<\/code> \u0434\u043b\u044f \u0442\u0430\u0431\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed = a.txt | sed 'N;s\/\\n\/\\t\/'<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">2.<\/font> \u041f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0444\u0430\u0439\u043b\u0430 (\u0447\u0438\u0441\u043b\u043e \u0441\u043b\u0435\u0432\u0430, \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e).<\/p>\n<p>  \u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 <code>`cat -n filename`<\/code>:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed = a.txt | sed 'N; s\/^\/ \/; s\/ *\\(.\\{4,\\}\\)\\n\/\\1 \/'<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">3.<\/font> \u041f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u0435\u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '\/.\/=' a.txt | sed '\/.\/N; s\/\\n\/ \/'<\/code><\/p>\n<h3><font color=\"#3AC1EF\">\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a<\/font><\/h3>\n<p>  <font color=\"#3AC1EF\">1.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018nd\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '5d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">2.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018$d\u2019 filename <\/code><\/p>\n<p>  <font color=\"#3AC1EF\">3.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 <code>x<\/code> \u043f\u043e <code>y<\/code>:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018x,yd\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '3,5d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">4.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 n-\u043e\u0439 \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018n,$d\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '2,$d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">5.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0443\u044e \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018\/pattern\/d\u2019 filename <\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '\/life\/d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">6.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 n-\u043e\u0439:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018n~2d\u2019 filename <\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '3~2d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">7.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d, \u0438 \u043f\u043e \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0438\u0445:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018\/pattern\/,+2d\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '\/easy\/,+2d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">8.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '\/^$\/d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">9.<\/font> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 <code>#<\/code>:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -i '\/^#\/d;\/^$\/d' a.txt<\/code><\/p>\n<h3><font color=\"#3AC1EF\">\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\/\u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a<\/font><\/h3>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>cat<\/code>, \u0430 \u0435\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u0438 \u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442 <code>head<\/code> \u0438 <code>tail<\/code>. \u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043d\u0435\u043a\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0444\u0430\u0439\u043b\u0430? \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c <code>sed<\/code>.<\/p>\n<p>  <font color=\"#3AC1EF\">1.<\/font> \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0438 x \u043f\u043e y:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018x,yp\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -n '2,5p' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">2.<\/font> \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0435\u0441\u044c \u0444\u0430\u0439\u043b, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018x,yd\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '2,4d' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">3.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 n-\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018address\u2019p filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -n '4'p a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">4.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 x \u043f\u043e y:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018x,y\u2019p filename <\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -n '4,6'p a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">5.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018$\u2019p filename<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">6.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441 n-\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018n,$p\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -n '3,$'p a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">7.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \/pattern\/p filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -n \/every\/p a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">8.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439, \u0433\u0434\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0448\u0430\u0431\u043b\u043e\u043d, \u0438 \u0434\u043e \u0441\u0442\u0440\u043e\u043a\u0438 x:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018\/pattern\/,xp\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -n '\/everyone\/,5p' a.txt<\/code><\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 <code>everyone<\/code> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 3, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u044f\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 3 \u043f\u043e 5. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0444\u0430\u0439\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0432\u043c\u0435\u0441\u0442\u043e 5 \u0441\u0438\u043c\u0432\u043e\u043b <code>$<\/code>.<\/p>\n<p>  <font color=\"#3AC1EF\">9.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 x \u0438 \u0434\u043e \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 \u0448\u0430\u0431\u043b\u043e\u043d. \u0415\u0441\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018x,\/pattern\/p\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>sed -n '1,\/everyone\/p' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">10.<\/font> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 x \u0441\u0442\u0440\u043e\u043a:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed -n \u2018\/pattern\/,+xp\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>sed -n '\/learn\/,+2p' a.txt<\/code><\/p>\n<h2><font color=\"#3AC1EF\">\u0417\u0430\u043c\u0435\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b sed (\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435)<\/font><\/h2>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>  <font color=\"#3AC1EF\">1.<\/font> \u0414\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0437\u0430\u043c\u0435\u043d\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u0430, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440:<\/p>\n<p>  <font color=\"#3AC1EF\">1.1<\/font> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u043b\u0430\u0433 <code>\/i<\/code>:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018s\/old_pattern\/new_pattern\/i\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed 's\/life\/Love\/i' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">1.2<\/font> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed 's\/[Ll]ife\/Love\/g' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">2.<\/font> \u0417\u0430\u043c\u0435\u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u043e\u0434\u043d\u0438\u043c: <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440: [root@rhel7 clang]# sed &#8216;s\/ *\/ \/g&#8217; filename<\/p>\n<p>  <font color=\"#3AC1EF\">3.<\/font> \u0417\u0430\u043c\u0435\u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430, \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018\/followed_pattern\/ s\/old_pattern\/new_pattern\/\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed '\/is\/ s\/live\/love\/' a.txt<\/code><\/p>\n<p>  <font color=\"#3AC1EF\">10.<\/font> \u0417\u0430\u043c\u0435\u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 n:<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: <code>sed \u2018n!s\/old_pattern\/new_pattern\/\u2019 filename<\/code><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440: <code>[root@rhel7 ~]# sed -i '5!s\/life\/love\/' a.txt<\/code><\/p>\n<p>  <a href=\"http:\/\/ruvds.com\/ru-rub?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=Bright_Translate&amp;utm_content=komanda_sed_v_linux_unix_s_primerami\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\"\/><\/a><\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/company\/ruvds\/blog\/667490\/\"> https:\/\/habr.com\/ru\/company\/ruvds\/blog\/667490\/<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/667490\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ru\/0g\/cn\/ru0gcn3hurbqakyomydzdh42m8e.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ru\/0g\/cn\/ru0gcn3hurbqakyomydzdh42m8e.png\"\/><\/div>\n<p><\/a><br \/>  \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u043c\u0435\u0436\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>sed<\/code> \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u0437\u0430\u043c\u0435\u043d\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u0418\u0434\u0435\u044e \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0439\u0434\u0430 <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/665852\/#comment_24365958\">\u043f\u043e\u0434\u0430\u043b<\/a> \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a <a href=\"https:\/\/habr.com\/ru\/users\/nronnie\/\" class=\"user_link\">nronnie<\/a> \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/665852\/\">\u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Bash<\/a>.<\/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-333745","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333745","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=333745"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333745\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}