From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Yura Zotov To: Altlinux Subject: Re: [mdk-re] =?koi8-r?B?89XNzcnSz9fBzsnF?= =?koi8-r?B?INDP1M/LwSDeydPFzA==?= Message-ID: <20011030202815.A10509@home-pool4-65.com2com.ru> Mail-Followup-To: Altlinux References: <20011030194400.A476@monster> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20011030194400.A476@monster> Sender: mandrake-russian-admin@altlinux.ru Errors-To: mandrake-russian-admin@altlinux.ru X-BeenThere: mandrake-russian@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: mandrake-russian@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: Linux-Mandrake RE / ALT Linux discussion list List-Unsubscribe: , List-Archive: Date: Tue Oct 30 20:24:11 2001 X-Original-Date: Tue, 30 Oct 2001 20:28:15 +0300 Archived-At: List-Archive: List-Post: On Tue, Oct 30, 2001 at 07:44:00PM +0300, Pankratov Artem wrote: > Здраствуйте, > > Имеется следующая проблема: ряд чисел который выводит скрипт, > как получить сумму этих чисел? s=0; for i in `echo "1 2 3 4"`; do s=$((s + i)); done echo $s -- Юрий А. Зотов