ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] bash -- please help
@ 2004-09-30  9:03 Jury Levykin
  2004-09-30  9:16 ` Alexey Morsov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jury Levykin @ 2004-09-30  9:03 UTC (permalink / raw)
  To: community

Как на bash написать следующую операцию:

=================
summ=0
x1=2
x2=3

summ=$summ + $x1
summ=$summ + $x2
==================

пробую использовать "expr $summ + $x1"
но не получается результат записать в переменную.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-30 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30  9:03 [Comm] bash -- please help Jury Levykin
2004-09-30  9:16 ` Alexey Morsov
2004-09-30  9:22 ` Jury Levykin
2004-09-30  9:22 ` php-coder
2004-09-30  9:24   ` Jury Levykin
2004-09-30 10:24 ` Maksim Otstavnov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git