{"id":219,"date":"2016-04-15T21:05:01","date_gmt":"2016-04-15T18:05:01","guid":{"rendered":"https:\/\/skilx.cc\/unlix\/?p=219"},"modified":"2019-10-25T06:15:30","modified_gmt":"2019-10-25T03:15:30","slug":"sed-stream-editor","status":"publish","type":"post","link":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/","title":{"rendered":"sed &#8212; Stream EDitor"},"content":{"rendered":"<h2>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed<\/h2>\n<p><!--more--><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\" width=\"50%\">\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/td>\n<td align=\"center\" width=\"50%\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/Nick\/John\/g' report.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/Nick\\|nick\/John\/g' report.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/^\/        \/' file.txt &gt; file_new.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/Of course\/,\/attention you pay\/p' myfile\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 &#171;Of course&#187; \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 &#171;attention you pay&#187;.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n 12,18p file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u0438 12-18 \u0444\u0430\u0439\u043b\u0430 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 12,18d file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0435\u0441\u044c \u0444\u0430\u0439\u043b file.txt \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u043e\u043a \u0441 12 \u043f\u043e 18<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed G file.txt \r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -f script.sed file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 script.sed \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0438\u0445.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '5!s\/ham\/cheese\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 ham \u043d\u0430 cheese \u0432 file.txt \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c 5-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '$d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/[0-9]\\{3\\}\/p' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0442\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0446\u0438\u0444\u0440\u0430\u043c\u0438<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/boom\/s\/aaa\/bb\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0415\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d &#171;boom&#187;, \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c aaa \u043d\u0430 bb<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '17,\/disk\/d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 17-\u0439, \u0434\u043e &#171;disk&#187;. \u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a \u0441 &#171;disk&#187; \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>echo ONE TWO | sed \"s\/one\/unos\/I\"\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 one \u043d\u0430 unos \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043e &#171;unos TWO&#187;<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 'G;G' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0432\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/.$\/\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0421\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043c\u0435\u043d\u044b dos2unix :). \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/^[ \\t]*\/\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b\/\u0442\u0430\u0431\u044b \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/[ \\t]*$\/\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b\/\u0442\u0430\u0431\u044b \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/^[ \\t]*\/\/;s\/[ \\t]*$\/\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b\/\u0442\u0430\u0431\u044b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/foo\/bar\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 foo \u043d\u0430 bar \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/foo\/bar\/4' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 foo \u043d\u0430 bar \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u043c \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/foo\/bar\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 foo \u043d\u0430 bar \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/baz\/s\/foo\/bar\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c foo \u043d\u0430 bar \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 baz.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/.\/,\/^$\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0421\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043e \u043e\u0434\u043d\u043e\u0439. \u041f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0432\u0435\u0440\u0445\u0443 \u043d\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/^$\/N;\/\\n$\/D' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0421\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043e \u043e\u0434\u043d\u043e\u0439, \u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/.\/,$!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e :a -e '\/^\\n*$\/{$d;N;};\/\\n$\/ba' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043c\u044b\u043a\u0430\u044e\u0449\u0438\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e :a -e '\/\\\\$\/N; s\/\\\\\\n\/ \/; ta' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0441\u043f\u043b\u0435\u0448\u0435\u043c, \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0435\u0435 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 (\u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438)<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/regex\/,+5p' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u044b\u0432\u043e\u0434\u0438\u0442 5 \u0441\u0442\u0440\u043e\u043a \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 regex<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '1~3d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0442\u0440\u0435\u0442\u044c\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '2~5p' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u044f\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/[Nn]ick\/John\/g' report.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0414\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u0432\u043e\u0439?<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/RE\/{p;q;}' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043c RE (\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f)<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '0,\/RE\/{\/\/d;}' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043c<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '0,\/RE\/s\/\/to_that\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0418\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/^[^,]*,\/9999,\/' file.csv\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430 9999 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435 CSV-\u0444\u0430\u0439\u043b\u0430<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>s\/^ *\\(.*[^ ]\\) *$\/|\\1|\/;\r\ns\/\" *, *\/\"|\/g;\r\n: loop\r\ns\/| *\\([^\",|][^,|]*\\) *, *\/|\\1|\/g;\r\ns\/| *, *\/||\/g;\r\nt loop\r\ns\/ *|\/|\/g;\r\ns\/| *\/|\/g;\r\ns\/^|\\(.*\\)|$\/\\1\/;\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0421\u043a\u0440\u0438\u043f\u0442 sed \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f CSV-\u0444\u0430\u0439\u043b\u0430 \u0432 \u0444\u0430\u0439\u043b \u0441 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0435\u0440\u0442\u043e\u0439 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 CSV, \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u043c\u0438 \u0438 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438).<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed ':a;s\/\\(^\\|[^0-9.]\\)\\([0-9]\\+\\)\\([0-9]\\{3\\}\\)\/\\1\\2,\\3\/g;ta' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041c\u0435\u043d\u044f\u0435\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0447\u0438\u0441\u0435\u043b \u0432 file.txt \u0441 1234.56 \u043d\u0430 1.234.56<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -r \"s\/\\&lt;(reg|exp)[a-z]+\/\\U&amp;\/g\"\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043b\u044e\u0431\u043e\u0435 \u0441\u043b\u043e\u0432\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0435\u0435\u0441\u044f \u0441 reg \u0438\u043b\u0438 exp \u0432 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '1,20 s\/Johnson\/White\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0437\u0430\u043c\u0435\u043d\u0443 Johnson \u043d\u0430 White \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 1 &#8212; 20.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '1,20 !s\/Johnson\/White\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 (\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u0435\u0437\u0434\u0435, \u043a\u0440\u043e\u043c\u0435 \u0441\u0442\u0440\u043e\u043a 1-20)<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/from\/,\/until\/ { s\/\\&lt;red\\&gt;\/magenta\/g; s\/&lt;blue\\&gt;\/cyan\/g; }' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0436\u0434\u0443 &#171;from&#187; \u0438 &#171;until&#187;. \u0415\u0441\u043b\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439 &#171;from&#187;-&#171;until&#187; \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/ENDNOTES:\/,$ { s\/Schaff\/Herzog\/g; s\/Kraft\/Ebbing\/g; }' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e \u0441\u043b\u043e\u0432\u0430 &#171;ENDNOTES:&#187; \u0438 \u0434\u043e EOF<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/.\/{H;$!d;};x;\/regex\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0430\u0431\u0437\u0430\u0446 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 regex<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e '\/.\/{H;$!d;}' -e 'x;\/RE1\/!d;\/RE2\/!d;\/RE3\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0430\u0431\u0437\u0430\u0446\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 RE1, RE2 \u0438 RE3. \u041f\u043e\u0440\u044f\u0434\u043e\u043a RE1, RE2 \u0438 RE3 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/14\"\/fourteen inches\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0422\u0430\u043a \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/\\\/some\\\/UNIX\\\/path\/\\\/a\\\/new\\\/path\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0443\u0442\u044f\u043c\u0438 Unix<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/[a-g]\/\/g' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 a \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f g \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/\\(.*\\)foo\/\\1bar\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 foo \u043d\u0430 bar<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '1!G;h;$!d' \r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b tac<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/\\n\/!G;s\/\\(.\\)\\(.*\\n\\)\/&amp;\\2\\1\/;\/\/D;s\/.\/\/'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b rev<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 10q file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b head<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e :a -e '$q;N;11,$D;ba' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b tail<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '$!N; \/^\\(.*\\)\\n\\1$\/!P; D' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b uniq<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '$!N; s\/^\\(.*\\)\\n\\1$\/\\1\/;t; D' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 (\u0447\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e uniq -d)<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '$!N;$!D' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u042d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442 tail -n 2<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '$p' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">&#8230; tail -n 1 (\u0438\u043b\u0438 tail -1)<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/regexp\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u042d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442 grep<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/regexp\/{g;1!p;};h' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0443\u044e\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0432\u044b\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u043c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044e, \u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0443\u044e \u0441\u0430\u043c\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/regexp\/{n;p;}' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0443\u044e\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044e, \u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0443\u044e \u0441\u0430\u043c\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/pattern\/d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0443 pattern<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/.\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/^$\/N;\/\\n$\/N;\/\/D' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0421\u0436\u0438\u043c\u0430\u0435\u0442 \u0432\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043e \u0434\u0432\u0443\u0445 \u043f\u0443\u0441\u0442\u044b\u0445. \u041e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/^$\/{p;h;};\/.\/{x;\/.\/p;}' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/^$\/q'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0438\u0441\u044c\u043c\u0430. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 &#8212; \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '1,\/^$\/d'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u0435\u043b\u043e \u043f\u0438\u0441\u044c\u043c\u0430. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 &#8212; \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/^Subject: *\/!d; s\/\/\/;q'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u0435\u043c\u0443 \u043f\u0438\u0441\u044c\u043c\u0430<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/^\/&gt; \/'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0426\u0438\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044f &#171;&gt; &#187; \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/^&gt; \/\/'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 (\u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0446\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f)<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e :a -e 's\/&lt;[^&gt;]*&gt;\/\/g;\/&lt;\/N;\/\/ba'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 HTML-\u0442\u0435\u0433\u0438<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre> sed '\/.\/{H;$!d;};x;s\/\\n\/={NL}=\/g' file.txt\\\r\n | sort | sed '1s\/={NL}=\/\/;s\/={NL}=\/\\n\/g'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0421\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0430\u0431\u0437\u0430\u0446\u044b \u0432 file.txt \u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's@\/usr\/bin@&amp;\/local@g' path.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \/usr\/bin \u043d\u0430 \/usr\/bin\/local \u0432 path.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's@^.*$@&lt;&amp;&gt;&gt;&gt;@g' path.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0438 \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \ud83d\ude42<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/\\(\\\/[^:]*\\).*\/\\1\/g' path.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0447\u0442\u043e path.txt \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 $PATH, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0443\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed 's\/\\([^:]*\\).*\/\\1\/' \/etc\/passwd\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u0430 awk &#8212; \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 passwd<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>echo \"Welcome To The Geek Stuff\" | sed 's\/\\(\\b[A-Z]\\)\/\\(\\1\\)\/g' \r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u043e\u043d\u044f\u0442\u043d\u043e \u0431\u0435\u0437 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439 &#8212; (W)elcome (T)o (T)he (G)eek (S)tuff<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/.\/{H;$!d;};x;s\/\\n\/={NL}=\/g' file.txt\\\r\n | sed '\/END$\/s\/hills\/mountains\/g'\\\r\n | sed '1s\/={NL}=\/\/;s\/={NL}=\/\\n\/g'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 &#171;hills&#187; \u043d\u0430 &#171;mountains&#187;, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0431\u043b\u043e\u043a\u0430\u0445 \u0442\u0435\u043a\u0441\u0442\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0441 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0441 \u0442\u0440\u0435\u043c\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 &#171;END&#187;, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e.<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e '\/^#\/d' \/etc\/services | more\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b services \u0431\u0435\u0437 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '$s@\\([^:]*\\):\\([^:]*\\):\\([^:]*\\)@\\3:\\2:\\1:@g' path.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u0435\u0440\u0432\u044b\u0445 \u0442\u0440\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0444\u0430\u0439\u043b\u0430 path.txt \u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/regex\/{x;p;x;}' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u044b\u0448\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044e<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/AAA\/!d; \/BBB\/!d; \/CCC\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0418\u0449\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 AAA, BBB \u0438 CCC \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/AAA.*BBB.*CCC\/!d' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0418\u0449\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 AAA, BBB \u0438 CCC \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/^.\\{65\\}\/p' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u0438\u043d\u043e\u0439 65 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u0431\u043e\u043b\u0435\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -n '\/^.\\{65\\}\/!p' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u0438\u043d\u043e\u0439 65 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u043c\u0435\u043d\u0435\u0435<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/regex\/G' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 regex<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed '\/regex\/{x;p;x;G;}' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430\u0434 \u0438 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 regex<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed = file.txt | sed 'N;s\/\\n\/\\t\/'\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u041d\u0443\u043c\u0435\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 file.txt<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e :a -e 's\/^.\\{1,78\\}$\/ &amp;\/;ta' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e<\/td>\n<\/tr>\n<tr>\n<td width=\"50%\">\n<div>\n<pre>sed -e :a -e 's\/^.\\{1,77\\}$\/ &amp;\/;ta' -e 's\/\\( *\\)\\1\/\\1\/' file.txt\r\n<\/pre>\n<\/div>\n<\/td>\n<td width=\"50%\">\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed<\/p>\n","protected":false},"author":1,"featured_media":220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[171,172,169,170,66,173],"class_list":["post-219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other","tag-editor","tag-regex","tag-sed","tag-stream","tag-66","tag-173"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed &#039;s\/Nick\/John\/g&#039; report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed &#039;s\/Nick\\|nick\/John\/g&#039; report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed &#039;s\/^\/ \/&#039; file.txt &gt; file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n &#039;\/Of course\/,\/attention you pay\/p&#039; myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"UNLIX\"\/>\n\t<meta name=\"keywords\" content=\"editor,regex,sed,stream,\u043f\u0440\u0438\u043c\u0435\u0440\u044b,\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f,other\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"ru_RU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"UNLIX - \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043e UNIX \u0438 LINUX \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"sed \u2014 Stream EDitor | UNLIX\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed &#039;s\/Nick\/John\/g&#039; report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed &#039;s\/Nick\\|nick\/John\/g&#039; report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed &#039;s\/^\/ \/&#039; file.txt &gt; file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n &#039;\/Of course\/,\/attention you pay\/p&#039; myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"395\" \/>\n\t\t<meta property=\"og:image:height\" content=\"95\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-04-15T18:05:01+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-25T03:15:30+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"sed \u2014 Stream EDitor | UNLIX\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed &#039;s\/Nick\/John\/g&#039; report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed &#039;s\/Nick\\|nick\/John\/g&#039; report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed &#039;s\/^\/ \/&#039; file.txt &gt; file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n &#039;\/Of course\/,\/attention you pay\/p&#039; myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#article\",\"name\":\"sed \\u2014 Stream EDitor | UNLIX\",\"headline\":\"sed &#8212; Stream EDitor\",\"author\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/sed-stream-editor.png\",\"width\":395,\"height\":95},\"datePublished\":\"2016-04-15T21:05:01+03:00\",\"dateModified\":\"2019-10-25T06:15:30+03:00\",\"inLanguage\":\"ru-RU\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#webpage\"},\"articleSection\":\"Other, Editor, regex, sed, Stream, \\u043f\\u0440\\u0438\\u043c\\u0435\\u0440\\u044b, \\u0440\\u0435\\u0433\\u0443\\u043b\\u044f\\u0440\\u043d\\u044b\\u0435 \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u044f\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/skilx.cc\\\/unlix\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/#listItem\",\"name\":\"\\u0421\\u043b\\u0443\\u0436\\u0431\\u044b \\u0438 \\u041f\\u0430\\u043a\\u0435\\u0442\\u044b\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/#listItem\",\"position\":2,\"name\":\"\\u0421\\u043b\\u0443\\u0436\\u0431\\u044b \\u0438 \\u041f\\u0430\\u043a\\u0435\\u0442\\u044b\",\"item\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/other\\\/#listItem\",\"name\":\"Other\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/other\\\/#listItem\",\"position\":3,\"name\":\"Other\",\"item\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/other\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#listItem\",\"name\":\"sed &#8212; Stream EDitor\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/#listItem\",\"name\":\"\\u0421\\u043b\\u0443\\u0436\\u0431\\u044b \\u0438 \\u041f\\u0430\\u043a\\u0435\\u0442\\u044b\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#listItem\",\"position\":4,\"name\":\"sed &#8212; Stream EDitor\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/category\\\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\\\/other\\\/#listItem\",\"name\":\"Other\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/#organization\",\"name\":\"UNLIX\",\"description\":\"\\u0437\\u0430\\u043c\\u0435\\u0442\\u043a\\u0438 \\u043e UNIX \\u0438 LINUX \\u0441\\u0438\\u0441\\u0442\\u0435\\u043c\\u0430\\u0445\",\"url\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/author\\\/admin\\\/\",\"name\":\"UNLIX\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb658ed897a5bd13cad2519cd095d49eb0268cd23e9c6ae956a0bdc37bfd9ae8?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"UNLIX\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#webpage\",\"url\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/\",\"name\":\"sed \\u2014 Stream EDitor | UNLIX\",\"description\":\"\\u041f\\u0440\\u0438\\u043c\\u0435\\u0440\\u044b \\u0438\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f sed \\u0421\\u0438\\u043d\\u0442\\u0430\\u043a\\u0441\\u0438\\u0441 \\u043a\\u043e\\u043c\\u0430\\u043d\\u0434\\u044b \\u041e\\u043f\\u0438\\u0441\\u0430\\u043d\\u0438\\u0435 sed 's\\\/Nick\\\/John\\\/g' report.txt \\u0417\\u0430\\u043c\\u0435\\u043d\\u044f\\u0435\\u0442 \\u043a\\u0430\\u0436\\u0434\\u043e\\u0435 \\u0432\\u0445\\u043e\\u0436\\u0434\\u0435\\u043d\\u0438\\u0435 Nick \\u043d\\u0430 John \\u0432 \\u0444\\u0430\\u0439\\u043b\\u0435 report.txt sed 's\\\/Nick\\\\|nick\\\/John\\\/g' report.txt \\u0417\\u0430\\u043c\\u0435\\u043d\\u044f\\u0435\\u0442 \\u043a\\u0430\\u0436\\u0434\\u043e\\u0435 \\u0432\\u0445\\u043e\\u0436\\u0434\\u0435\\u043d\\u0438\\u0435 Nick \\u0438\\u043b\\u0438 nick \\u043d\\u0430 John. sed 's\\\/^\\\/ \\\/' file.txt > file_new.txt \\u0414\\u043e\\u0431\\u0430\\u0432\\u043b\\u044f\\u0435\\u0442 8 \\u043f\\u0440\\u043e\\u0431\\u0435\\u043b\\u043e\\u0432 \\u0441\\u043b\\u0435\\u0432\\u0430 \\u043e\\u0442 \\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u0434\\u043b\\u044f \\u0443\\u043b\\u0443\\u0447\\u0448\\u0435\\u043d\\u0438\\u044f \\u043a\\u0430\\u0447\\u0435\\u0441\\u0442\\u0432\\u0430 \\u043f\\u0435\\u0447\\u0430\\u0442\\u0438. sed -n '\\\/Of course\\\/,\\\/attention you pay\\\/p' myfile \\u0412\\u044b\\u0432\\u043e\\u0434\\u0438\\u0442 \\u0432\\u0441\\u0435 \\u0430\\u0431\\u0437\\u0430\\u0446\\u044b,\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/author\\\/admin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/sed-stream-editor.png\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#mainImage\",\"width\":395,\"height\":95},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/sed-stream-editor\\\/#mainImage\"},\"datePublished\":\"2016-04-15T21:05:01+03:00\",\"dateModified\":\"2019-10-25T06:15:30+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/#website\",\"url\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/\",\"name\":\"UNLIX\",\"description\":\"\\u0437\\u0430\\u043c\\u0435\\u0442\\u043a\\u0438 \\u043e UNIX \\u0438 LINUX \\u0441\\u0438\\u0441\\u0442\\u0435\\u043c\\u0430\\u0445\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/skilx.cc\\\/unlix\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"sed \u2014 Stream EDitor | UNLIX","description":"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed 's\/Nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed 's\/Nick\\|nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed 's\/^\/ \/' file.txt > file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n '\/Of course\/,\/attention you pay\/p' myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,","canonical_url":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/","robots":"max-image-preview:large","keywords":"editor,regex,sed,stream,\u043f\u0440\u0438\u043c\u0435\u0440\u044b,\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f,other","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#article","name":"sed \u2014 Stream EDitor | UNLIX","headline":"sed &#8212; Stream EDitor","author":{"@id":"https:\/\/skilx.cc\/unlix\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/skilx.cc\/unlix\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png","width":395,"height":95},"datePublished":"2016-04-15T21:05:01+03:00","dateModified":"2019-10-25T06:15:30+03:00","inLanguage":"ru-RU","mainEntityOfPage":{"@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#webpage"},"isPartOf":{"@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#webpage"},"articleSection":"Other, Editor, regex, sed, Stream, \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f"},{"@type":"BreadcrumbList","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix#listItem","position":1,"name":"Home","item":"https:\/\/skilx.cc\/unlix","nextItem":{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/#listItem","name":"\u0421\u043b\u0443\u0436\u0431\u044b \u0438 \u041f\u0430\u043a\u0435\u0442\u044b"}},{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/#listItem","position":2,"name":"\u0421\u043b\u0443\u0436\u0431\u044b \u0438 \u041f\u0430\u043a\u0435\u0442\u044b","item":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/","nextItem":{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/other\/#listItem","name":"Other"},"previousItem":{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/other\/#listItem","position":3,"name":"Other","item":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/other\/","nextItem":{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#listItem","name":"sed &#8212; Stream EDitor"},"previousItem":{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/#listItem","name":"\u0421\u043b\u0443\u0436\u0431\u044b \u0438 \u041f\u0430\u043a\u0435\u0442\u044b"}},{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#listItem","position":4,"name":"sed &#8212; Stream EDitor","previousItem":{"@type":"ListItem","@id":"https:\/\/skilx.cc\/unlix\/category\/%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b\/other\/#listItem","name":"Other"}}]},{"@type":"Organization","@id":"https:\/\/skilx.cc\/unlix\/#organization","name":"UNLIX","description":"\u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043e UNIX \u0438 LINUX \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445","url":"https:\/\/skilx.cc\/unlix\/"},{"@type":"Person","@id":"https:\/\/skilx.cc\/unlix\/author\/admin\/#author","url":"https:\/\/skilx.cc\/unlix\/author\/admin\/","name":"UNLIX","image":{"@type":"ImageObject","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/eb658ed897a5bd13cad2519cd095d49eb0268cd23e9c6ae956a0bdc37bfd9ae8?s=96&d=mm&r=g","width":96,"height":96,"caption":"UNLIX"}},{"@type":"WebPage","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#webpage","url":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/","name":"sed \u2014 Stream EDitor | UNLIX","description":"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed 's\/Nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed 's\/Nick\\|nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed 's\/^\/ \/' file.txt > file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n '\/Of course\/,\/attention you pay\/p' myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/skilx.cc\/unlix\/#website"},"breadcrumb":{"@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#breadcrumblist"},"author":{"@id":"https:\/\/skilx.cc\/unlix\/author\/admin\/#author"},"creator":{"@id":"https:\/\/skilx.cc\/unlix\/author\/admin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png","@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#mainImage","width":395,"height":95},"primaryImageOfPage":{"@id":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/#mainImage"},"datePublished":"2016-04-15T21:05:01+03:00","dateModified":"2019-10-25T06:15:30+03:00"},{"@type":"WebSite","@id":"https:\/\/skilx.cc\/unlix\/#website","url":"https:\/\/skilx.cc\/unlix\/","name":"UNLIX","description":"\u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043e UNIX \u0438 LINUX \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/skilx.cc\/unlix\/#organization"}}]},"og:locale":"ru_RU","og:site_name":"UNLIX - \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043e UNIX \u0438 LINUX \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445","og:type":"article","og:title":"sed \u2014 Stream EDitor | UNLIX","og:description":"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed 's\/Nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed 's\/Nick\\|nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed 's\/^\/ \/' file.txt &gt; file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n '\/Of course\/,\/attention you pay\/p' myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,","og:url":"https:\/\/skilx.cc\/unlix\/sed-stream-editor\/","og:image":"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png","og:image:secure_url":"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png","og:image:width":395,"og:image:height":95,"article:published_time":"2016-04-15T18:05:01+00:00","article:modified_time":"2019-10-25T03:15:30+00:00","twitter:card":"summary","twitter:title":"sed \u2014 Stream EDitor | UNLIX","twitter:description":"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f sed \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 sed 's\/Nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u043d\u0430 John \u0432 \u0444\u0430\u0439\u043b\u0435 report.txt sed 's\/Nick\\|nick\/John\/g' report.txt \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Nick \u0438\u043b\u0438 nick \u043d\u0430 John. sed 's\/^\/ \/' file.txt &gt; file_new.txt \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 8 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0435\u0447\u0430\u0442\u0438. sed -n '\/Of course\/,\/attention you pay\/p' myfile \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0430\u0431\u0437\u0430\u0446\u044b,","twitter:image":"https:\/\/skilx.cc\/unlix\/wp-content\/uploads\/2016\/04\/sed-stream-editor.png"},"aioseo_meta_data":{"post_id":"219","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-23 10:11:50","updated":"2026-06-08 18:00:55","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":0,"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/media\/220"}],"wp:attachment":[{"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skilx.cc\/unlix\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}