ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] bash
@ 2004-09-29 11:49 Andrey Rybak
  2004-09-29 13:36 ` Andrey Rybak
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Rybak @ 2004-09-29 11:49 UTC (permalink / raw)
  To: community

Hello, community!

Пусть, например
apt-cache searsh somewords
выдает некий список строк

Как можно в bash заполнить ими некий массив massive, чтобы этим массивом 
можно было бы пользоваться в конструкциях типа:

for variable in massive
do
...
done
?


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

* Re: [Comm] bash
  2004-09-29 11:49 [Comm] bash Andrey Rybak
@ 2004-09-29 13:36 ` Andrey Rybak
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Rybak @ 2004-09-29 13:36 UTC (permalink / raw)
  To: community


[ujo@ujo ujo]$ apt-cache search yacc|(while read var;do echo "DDD:
$var";done)
DDD: bison - A GNU general-purpose parser generator
DDD: flex - A tool for creating scanners (text pattern recognizers)
DDD: gob2 - The GObject Builder
DDD: ocaml - The Objective Caml compiler and programming environment
DDD: perl-Parse-RecDescent - Perl module for generating recursive-descent
parsers
DDD: python-module-pyparsing - Python parsing module
DDD: sloccount - Measures source lines of code (SLOC) in programs
DDD: xemacs-semantic - Semantic bovinator (Yacc/Lex for XEmacs)

Так пойдёт?



>
>  
>

То, что надо. Спасибо.



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

end of thread, other threads:[~2004-09-29 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-29 11:49 [Comm] bash Andrey Rybak
2004-09-29 13:36 ` Andrey Rybak

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