<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Дневники начинающего «гентушника»]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=19247&amp;type=atom" />
	<updated>2012-03-20T10:10:10Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=19247</id>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=261268#p261268" />
			<content type="html"><![CDATA[<p>прочитали бы хоть что за ключ -r, без него надо экранировать круглые скобки:<br /><strong>sed -e &#039;s/^\([0-9]{2}-[0-9]{3};\)/\1\1/&#039;</strong></p><p>ЗЫ: он есть только в гнутом sed&#039;е</p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2012-03-20T10:10:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=261268#p261268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=261234#p261234" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Fat-Zer пишет:</cite><blockquote><p>и? тоже самое: <strong>sed -re &#039;s/^([0-9]{2}-[0-9]{3};)/\1\1/&#039;</strong></p></blockquote></div><p>ух ты. а я и не подозревал что так можно гнуть &quot;реги&quot;&nbsp; smile <br />сэнкью сёр</p><br /><p>// add<br />только в соляре чот не работает(<br /></p><div class="quotebox"><blockquote><p>&gt; sed -re &#039;s/^([0-9]{2}-[0-9]{3};)/\1\1/&#039; 888888<br />sed: illegal option -- r<br />&gt; sed -e &#039;s/^([0-9]{2}-[0-9]{3};)/\1\1/&#039; 888888<br />sed: command garbled: s/^([0-9]{2}-[0-9]{3};)/\1\1/<br />&gt; sed &#039;s/^([0-9]{2}-[0-9]{3};)/\1\1/&#039; 888888<br />sed: command garbled: s/^([0-9]{2}-[0-9]{3};)/\1\1/<br />&gt;</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-20T07:19:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=261234#p261234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=261197#p261197" />
			<content type="html"><![CDATA[<p>и? тоже самое: <strong>sed -re &#039;s/^([0-9]{2}-[0-9]{3};)/\1\1/&#039;</strong></p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2012-03-19T20:22:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=261197#p261197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=261190#p261190" />
			<content type="html"><![CDATA[<p><strong>Fat-Zer</strong>, abc - это регулярное выражение..</p><br /><p>до<br />21-783;any_symbols;bla..bla..bla<br />35-911;any_symbols;bla..bla..bla<br />61-339;any_symbols;bla..bla..bla</p><p>после<br />21-783;21-783;any_symbols;bla..bla..bla<br />35-911;35-911;any_symbols;bla..bla..bla<br />61-339;61-339;any_symbols;bla..bla..bla</p><p>формат рег выражения которое нужно склонировать<br />[0-9][0-9]-[0-9][0-9][0-9]<br />оно всегда идет в начале строки ^</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-19T20:05:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=261190#p261190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=261087#p261087" />
			<content type="html"><![CDATA[<p><strong>sed -re &#039;s/(abc)/\1\1/&#039;</strong></p><p>ЗЫ: тема слишком толстая и в ней больше половины не по делу... после &quot;решения&quot; &quot;проблемы с седом&quot; - закрываю...</p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2012-03-19T13:35:22Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=261087#p261087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=261039#p261039" />
			<content type="html"><![CDATA[<p>уважаемые знатоки, подскажите пожалуйста.<br />как с помощью <strong>sed</strong> из строки вида<br /><strong>abc</strong>def<br />сделать строку вида<br /><strong>abcabc</strong>def<br />то есть удвоить определенную последовательность<br />?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-19T11:45:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=261039#p261039</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259854#p259854" />
			<content type="html"><![CDATA[<p>спасип. пробел убрал все заработало.</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-15T08:34:36Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259854#p259854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259849#p259849" />
			<content type="html"><![CDATA[<p>Кривой шебанг? Пробел между &quot;#&quot; и &quot;!&quot; не нужен.<br />Где-то русская буква? Даже не знаю.</p>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2012-03-15T08:23:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259849#p259849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259847#p259847" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>&gt; bash report<br />12:22:09<br />&gt;</p></blockquote></div><p>чего не хватает?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-15T08:22:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259847#p259847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259845#p259845" />
			<content type="html"><![CDATA[<p>$ bash test<br />12:20:45</p>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2012-03-15T08:20:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259845#p259845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259844#p259844" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><div class="quotebox"><blockquote><p># !/bin/bash</p><p>ABC=`date | awk &#039;{print $4}&#039;`</p><p>echo &quot;$ABC&quot;</p></blockquote></div></blockquote></div><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">&gt; ./report<br />ABC=12:12:28: Command not found.<br />ABC: Undefined variable.<br />&gt;</div><br />что не так?<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">&gt; ls -l report<br />-rwxr--r--&nbsp; &nbsp;1 esernar&nbsp; nms&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 294 Mar 14 13:51 report<br />&gt;</div></p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-15T08:13:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259844#p259844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259445#p259445" />
			<content type="html"><![CDATA[<p>спасибо)</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-13T16:11:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259445#p259445</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259442#p259442" />
			<content type="html"><![CDATA[<p>Сворачивает строки не cat, а терминал, если речь идёт про вывод на консоль/терминал.<br />Можно при таком выводе обрезать длинные строки:</p><p>cat file | cut -c - $(tput cols)</p><p>Или определив аналогичную функцию, использовать её при выводе:</p><p>function nowrap { cut -c -$(tput cols); }</p><p>cat file | nowrap</p>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2012-03-13T16:05:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259442#p259442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259440#p259440" />
			<content type="html"><![CDATA[<p><strong>moshell</strong>, IMHO, у <em>cat</em> другое предназначение&nbsp; wink&nbsp; <br />Попробуйте <em>less -S</em>.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-03-13T16:02:09Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259440#p259440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дневники начинающего «гентушника»]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=259437#p259437" />
			<content type="html"><![CDATA[<p>простите за ламерский вопрос.<br />как подавить перенос строк в команде cat?<br />в man cat не нашел такого.<br />например есть такая опция nano -w не переносит слова.<br />нужно то же самое только для cat</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-03-13T15:56:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=259437#p259437</id>
		</entry>
</feed>
