<?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=24855&amp;type=atom" />
	<updated>2012-10-24T10:14:08Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=24855</id>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305741#p305741" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>«А мы лёгких путей и не ищем...» ©&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /></p></blockquote></div><p>тем более, если учесть факт существования комбайнеров. любой костыль можно придумать, если не знаешь рационального решения.</p><p>поэтому я и спросил что по легче)</p><br /><p>ps. к примеру, до прочтения man date, чтоб вывести только время, делал так<br />date | awk &#039;{print $4}&#039;</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-10-24T10:14:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305741#p305741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305725#p305725" />
			<content type="html"><![CDATA[<p><img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[-=Serj=-]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16175</uri>
			</author>
			<updated>2012-10-24T09:10:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305725#p305725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305724#p305724" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>-=Serj=- пишет:</cite><blockquote><p>тогда можно проще:</p></blockquote></div><p>«А мы лёгких путей и не ищем...» ©&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /></p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-10-24T09:07:45Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305724#p305724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305722#p305722" />
			<content type="html"><![CDATA[<p>Ну, если считать Python штатным средством, тогда можно проще:<br /></p><div class="codebox"><pre><code>#!/usr/bin/env python

array = &quot;aasda,asdasd,adf,fgfg,tyt&quot;.split(&#039;,&#039;)</code></pre></div><p><img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />В параметрах split указываем необходимый разделитель.</p>]]></content>
			<author>
				<name><![CDATA[-=Serj=-]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16175</uri>
			</author>
			<updated>2012-10-24T09:03:09Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305722#p305722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305718#p305718" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>-=Serj=- пишет:</cite><blockquote><p>А если разделитель - не пробел?</p></blockquote></div><p>Преобразовать строку, заменив разделитель полей, с помощью <em>sed</em>, <em>awk</em> или <em>tr</em>.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-10-24T08:55:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305718#p305718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305717#p305717" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>Как вариант: инициализировать строкой массив</p></blockquote></div><p>Хм. А если разделитель - не пробел?</p>]]></content>
			<author>
				<name><![CDATA[-=Serj=-]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16175</uri>
			</author>
			<updated>2012-10-24T08:53:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305717#p305717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305713#p305713" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>moshell пишет:</cite><blockquote><p>интересно.</p><p>спасибо</p></blockquote></div><p><a href="http://tldp.org/LDP/abs/html/arrays.html">http://tldp.org/LDP/abs/html/arrays.html</a></p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-10-24T08:39:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305713#p305713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305712#p305712" />
			<content type="html"><![CDATA[<p>интересно.</p><p>спасибо</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-10-24T08:38:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305712#p305712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305705#p305705" />
			<content type="html"><![CDATA[<p>Как вариант: инициализировать строкой массив, затем по индексу&nbsp; из этого массива присваивать значения переменным.<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"><br />lupo@gentoo-laptop ~ % area2=( zero one two three four )<br />lupo@gentoo-laptop ~ % echo ${area2[0]}</p><p>lupo@gentoo-laptop ~ % echo ${area2[1]}<br />zero<br />lupo@gentoo-laptop ~ % echo ${area2[2]}<br />one<br />lupo@gentoo-laptop ~ % a=${area2[3]}<br />lupo@gentoo-laptop ~ % echo $a<br />two<br /></div></p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-10-24T08:19:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305705#p305705</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305702#p305702" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>moshell пишет:</cite><blockquote><p>Подскажите плз.</p><p>есть строка, состоящая из n полей.<br />есть ли штатное решение чтоб все поля указанной строки занести в переменные?</p></blockquote></div><p>Что за язык? bash? тогда man cut.</p>]]></content>
			<author>
				<name><![CDATA[-=Serj=-]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16175</uri>
			</author>
			<updated>2012-10-24T08:09:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305702#p305702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[поле == переменная]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305698#p305698" />
			<content type="html"><![CDATA[<p>Подскажите плз.</p><p>есть строка, состоящая из n полей.<br />есть ли штатное решение чтоб все поля указанной строки занести в переменные?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2012-10-24T08:06:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305698#p305698</id>
		</entry>
</feed>
