<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; sed - взять отдельную часть строки]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=14688&amp;type=atom" />
	<updated>2011-08-07T14:04:07Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=14688</id>
		<entry>
			<title type="html"><![CDATA[Re: sed - взять отдельную часть строки]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=201408#p201408" />
			<content type="html"><![CDATA[<p>по уму:<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">$ echo &#039;&lt;input class=&quot;urlinput&quot; type=&quot;text&quot; value=&quot;http://imglink.ru/show-image.php?id=267696742046162616f2cd582a2abd27&quot; onclick=&quot;this.select();&quot; size=&quot;72&quot;&gt;&#039; | sed -r &#039;s/.* value=&quot;([^&quot;]+)&quot; .*/\1/&#039;<br /><a href="http://imglink.ru/show-image.php?id=267696742046162616f2cd582a2abd27">http://imglink.ru/show-image.php?id=267 … 582a2abd27</a><br /></div></p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-08-07T14:04:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=201408#p201408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sed - взять отдельную часть строки]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190844#p190844" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>mogul82 пишет:</cite><blockquote><p>а с помощью именно sed нет варианта ?</p></blockquote></div><div class="codebox"><pre><code>sed -r &#039;s/.*value=&quot;//; s/&quot;.*//&#039;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2011-06-26T22:27:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190844#p190844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sed - взять отдельную часть строки]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190831#p190831" />
			<content type="html"><![CDATA[<p>а с помощью именно sed нет варианта ?</p>]]></content>
			<author>
				<name><![CDATA[mogul82]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3309</uri>
			</author>
			<updated>2011-06-26T18:40:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190831#p190831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sed - взять отдельную часть строки]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190823#p190823" />
			<content type="html"><![CDATA[<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"># echo &#039;&lt;input class=&quot;urlinput&quot; type=&quot;text&quot; value=&quot;http://imglink.ru/show-image.php?id=267696742046162616f2cd582a2abd27&quot; onclick=&quot;this.select();&quot; size=&quot;72&quot;&gt;&#039; | cut -f6 -d &#039;&quot;&#039;<br /><a href="http://imglink.ru/show-image.php?id=267696742046162616f2cd582a2abd27">http://imglink.ru/show-image.php?id=267 … 582a2abd27</a></div></p>]]></content>
			<author>
				<name><![CDATA[DdShurick]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14249</uri>
			</author>
			<updated>2011-06-26T18:23:33Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190823#p190823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[sed - взять отдельную часть строки]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190809#p190809" />
			<content type="html"><![CDATA[<p>Есть строка<br /></p><div class="quotebox"><blockquote><p>&lt;input class=&quot;urlinput&quot; type=&quot;text&quot; value=&quot;http://imglink.ru/show-image.php?id=267696742046162616f2cd582a2abd27&quot; onclick=&quot;this.select();&quot; size=&quot;72&quot;&gt;</p></blockquote></div><p>Мне надо выбрать значение value, т.е. </p><div class="quotebox"><blockquote><p><a href="http://imglink.ru/show-image.php?id=267696742046162616f2cd582a2abd27">http://imglink.ru/show-image.php?id=267 … 582a2abd27</a></p></blockquote></div><p>А вот как указать это?<br />Я вот знаю как замену текста указать в sed например один символ на другой или вывести строки с опред символами. Пытался весь остальной текст заменить на пустоту - &quot;&quot;, но не могу составить такое сложное RegExp. Как мне взять отдельную часть строки?<br />Помогите пожалуйста. Если можно с коментом что делает и как ваш sed или чО там будет.</p>]]></content>
			<author>
				<name><![CDATA[mogul82]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3309</uri>
			</author>
			<updated>2011-06-26T17:49:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190809#p190809</id>
		</entry>
</feed>
