<?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=32851&amp;type=atom" />
	<updated>2013-12-24T19:08:53Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=32851</id>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384208#p384208" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>richagok пишет:</cite><blockquote><p>Только объясните если не сложно, что делает &gt;$$</p></blockquote></div><p>Создаёт файл с именем, состоящим из номера процесса оболочки, где запущен скрипт. Вроде так.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-12-24T19:08:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384208#p384208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384196#p384196" />
			<content type="html"><![CDATA[<p>Из файла тоже можно)</p><p>Пока что короче всех вот этот получается: &gt;$$;ls|wc -l</p><p>Только объясните если не сложно, что делает &gt;$$</p>]]></content>
			<author>
				<name><![CDATA[richagok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32963</uri>
			</author>
			<updated>2013-12-24T18:43:09Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384196#p384196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384183#p384183" />
			<content type="html"><![CDATA[<p>в баше, но и то 11<br /></p><div class="codebox"><pre><code>echo $[y++]</code></pre></div>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T15:53:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384183#p384183</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384178#p384178" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>ls f&gt;&gt;f;wc f</code></pre></div>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T15:39:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384178#p384178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384177#p384177" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>ls&gt;$$&amp;</code></pre></div><p>но не факт</p>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T15:36:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384177#p384177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384173#p384173" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>richagok пишет:</cite><blockquote><p>Желательно конечно чтоб одно число выводило и не из файла команда. А прямо в командной строке</p></blockquote></div><p>У меня в два раза превышен лимит символов<br /></p><div class="codebox"><pre><code>[lupo@asus-x201e temp]$ ls|wc -l;&gt;`date +%N`
0
[lupo@asus-x201e temp]$ ls|wc -l;&gt;`date +%N`
1
[lupo@asus-x201e temp]$ ls|wc -l;&gt;`date +%N`
2
[lupo@asus-x201e temp]$ ls|wc -l;&gt;`date +%N`
3</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-12-24T15:14:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384173#p384173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384170#p384170" />
			<content type="html"><![CDATA[<p>Желательно конечно чтоб одно число выводило и не из файла команда. А прямо в командной строке</p>]]></content>
			<author>
				<name><![CDATA[richagok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32963</uri>
			</author>
			<updated>2013-12-24T14:52:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384170#p384170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384165#p384165" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>test.sh: line 2: 1: команда не найдена<br />test.sh: line 3: 2: команда не найдена<br />test.sh: line 4: 3: команда не найдена</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T14:37:55Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384165#p384165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384161#p384161" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>smaharbA пишет:</cite><blockquote><p>в баше будет</p></blockquote></div><div class="codebox"><pre><code>[lupo@asus-x201e tmp]$ cat test.sh 
wc&lt;$0&gt;&gt;$0;
[lupo@asus-x201e tmp]$ bash test.sh
test.sh: line 2: 1: команда не найдена
[lupo@asus-x201e tmp]$ bash test.sh
test.sh: line 2: 1: команда не найдена
test.sh: line 3: 2: команда не найдена
[lupo@asus-x201e tmp]$ bash test.sh
test.sh: line 2: 1: команда не найдена
test.sh: line 3: 2: команда не найдена
test.sh: line 4: 3: команда не найдена</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-12-24T14:25:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384161#p384161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384159#p384159" />
			<content type="html"><![CDATA[<p>в баше будет</p>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T14:23:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384159#p384159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384156#p384156" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>smaharbA пишет:</cite><blockquote><p>согласен, конечно т.з. подойдет и </p><div class="codebox"><pre><code>wc&lt;$0&gt;&gt;$0;</code></pre></div></blockquote></div><p>Не работает.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-12-24T14:01:17Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384156#p384156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384155#p384155" />
			<content type="html"><![CDATA[<p>согласен, конечно т.з. подойдет и </p><div class="codebox"><pre><code>wc&lt;$0&gt;&gt;$0;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T13:58:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384155#p384155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384154#p384154" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>smaharbA пишет:</cite><blockquote><p>результат соответствует т.з.</p></blockquote></div><p>...мягко говоря, не совсем.<br />P.S. Ни в чём не упрекаю, просто у меня приступ формализма.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-12-24T13:54:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384154#p384154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384152#p384152" />
			<content type="html"><![CDATA[<p>результат соответствует т.з.</p>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32462</uri>
			</author>
			<updated>2013-12-24T13:51:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384152#p384152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Короткий скрипт]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=384151#p384151" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>smaharbA пишет:</cite><blockquote><p>Lupo Alberto - в сабже речь о скрипте, а не о командной строке</p></blockquote></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:06 
/tmp/ cat test.sh 
&gt;$$;ls|wc
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:11 
/tmp/ zsh test.sh
^C
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:31 
/tmp/ bash test.sh 
     29      29     293
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:37 
/tmp/ bash test.sh
     30      30     298
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:38 
/tmp/ bash test.sh
     31      31     303
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:39 
/tmp/ chmod 755 test.sh 
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:53 
/tmp/ ./test.sh 
     32      32     308
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:48:58 
/tmp/ ./test.sh
     33      33     313
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:49:00 
/tmp/ ./test.sh
     34      34     318
█▓▒░lupo@asus-x201e█▓▒░ Вт дек 24 04:49:02 
/tmp/ bash
[lupo@asus-x201e tmp]$ ./test.sh 
     35      35     323
[lupo@asus-x201e tmp]$ ./test.sh 
     36      36     328
[lupo@asus-x201e tmp]$ ./test.sh 
     37      37     333
[lupo@asus-x201e tmp]$ ./test.sh 
     38      38     338
[lupo@asus-x201e tmp]$</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2013-12-24T13:50:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=384151#p384151</id>
		</entry>
</feed>
