ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] echo "две переменные"
@ 2004-09-15 12:53 Dolgov OV
  2004-09-15 13:02 ` Dolgov OV
  2004-09-15 14:53 ` Maxim Bodynasky
  0 siblings, 2 replies; 13+ messages in thread
From: Dolgov OV @ 2004-09-15 12:53 UTC (permalink / raw)
  To: community

Здравствуйте.

Мозги себе уже вывернул, но немогу разобраться, как проделать следующее:

$ i=5 ; n=привет ; echo $n - $i
привет - 5

Получается так как надо, а вот чего хочется:

$ for i in *.html ; do n=`grep ^НАЗВАНИЕ $i | sed s/"НАЗВАНИЕ\ \-\ "// -
| sed s/"<br>"// -` ; m='$n' ; echo "$n - $i" ; done

 - 100.htmlesias - Maybe
 - 101.htmllesias - Escape
 - 102.htmlce - Naughty Girl

Тоесть echo выдает содержание $n как бы фоном, а " - $i" печатает
поверх. Что у меня не так - понять не могу.

Натолкните на путь истинный, плиз.

Заранее благодарен.

-- 
С наилучшими,
Олег Долгов
<dov AT media-link DOT info>
Registered Linux user #315454


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

end of thread, other threads:[~2004-09-16 12:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-15 12:53 [Comm] echo "две переменные" Dolgov OV
2004-09-15 13:02 ` Dolgov OV
2004-09-15 14:53 ` Maxim Bodynasky
2004-09-15 15:04   ` Dolgov OV
2004-09-15 15:23     ` Maxim Bodynasky
2004-09-15 17:14       ` Alexandr Leutin
2004-09-16  6:56         ` Dolgov OV
2004-09-16  7:39           ` Alexandr Leutin
2004-09-16  8:11             ` Dolgov OV
2004-09-16 11:46               ` Alexandr Leutin
2004-09-16 12:14                 ` Dolgov OV
2004-09-16 11:47               ` Alexandr Leutin
2004-09-16 12:04               ` Dolgov OV

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