<?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=33611&amp;type=atom" />
	<updated>2014-02-05T14:22:44Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=33611</id>
		<entry>
			<title type="html"><![CDATA[Re: Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392191#p392191" />
			<content type="html"><![CDATA[<p>Сделал так.</p><div class="codebox"><pre><code>USER=&quot;quota@localhost support1@localhost support1@localhost1&quot;

for i in $USER; do
/opt/aurora/bin/doveadm expunge -u $i mailbox Inbox savedbefore 1d
/opt/aurora/bin/doveadm quota recalc -u $i
done</code></pre></div><p>Удобно тем, что всё в одном файле.</p>]]></content>
			<author>
				<name><![CDATA[across]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33424</uri>
			</author>
			<updated>2014-02-05T14:22:44Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392191#p392191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392142#p392142" />
			<content type="html"><![CDATA[<p>Совершенно не за что <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2014-02-05T11:10:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392142#p392142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392139#p392139" />
			<content type="html"><![CDATA[<p>Спасибо!!!</p>]]></content>
			<author>
				<name><![CDATA[across]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33424</uri>
			</author>
			<updated>2014-02-05T11:04:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392139#p392139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392135#p392135" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>for i in a b c; do ... done</code></pre></div><p>Если имен очень много, можно поступить так:<br /></p><div class="codebox"><pre><code>while read i; do
...
done &lt; namelist.txt</code></pre></div><p>А в файле:<br /></p><div class="codebox"><pre><code>foo
bar
zet
...
and_other</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2014-02-05T10:54:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392135#p392135</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392133#p392133" />
			<content type="html"><![CDATA[<p>Имена известны. Собственно админ сам будет их перечислять через запятую или другой разделитель =). Про цикл for знаю, но как присвоить ему несколько значений не пойму что-то... Наверняка с использованием bash-массива? Или есть более простой способ?</p>]]></content>
			<author>
				<name><![CDATA[across]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33424</uri>
			</author>
			<updated>2014-02-05T10:52:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392133#p392133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392131#p392131" />
			<content type="html"><![CDATA[<p>Цикл for. Но если имена этих пользователей известны, по идее, можно просто перечислить их в фигурных скобках через запятую.</p>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2014-02-05T10:47:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392131#p392131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Простейший вопрос.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=392128#p392128" />
			<content type="html"><![CDATA[<p>Есть скрипт с командой:</p><div class="codebox"><pre><code># doveadm expunge -u &#039;$USER&#039; mailbox Spam savedbefore 30d</code></pre></div><p>Каким образом можно сделать так, чтобы в скрипте описать значения переменной $USER следующим образом:</p><div class="codebox"><pre><code>USER=123,234,345,456 и т.д.</code></pre></div><p>При выполнении скрипта значения переменной $USER должны подставляться по очереди.</p><p>Буду рад любой наводке! Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[across]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33424</uri>
			</author>
			<updated>2014-02-05T10:43:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=392128#p392128</id>
		</entry>
</feed>
