From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 26 Nov 2002 18:49:25 +0400 From: ASA X-Mailer: The Bat! (v1.60q) Organization: LLB, LLC X-Priority: 3 (Normal) Message-ID: <10110781302.20021126184925@udm.ru> To: "A.L. Klyutchenya" In-Reply-To: <200211261715.41126.asoneofus@nm.ru> References: <200211261715.41126.asoneofus@nm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Subject: [Comm] =?Windows-1251?B?UmU6IFtDb21tXSAjIS9iaW4vYmFzaCDi7u/w7vE=?= Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru X-Reply-To: ASA List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: Hello A.L., Tuesday, November 26, 2002, 6:15:40 PM, you wrote: Видимо, имеется в виду из filelistb предлагаю: #!/bin/bash my_fn() { tmp=$1 shift for name in $tmp; do echo $name echo $1 shift done } filelista = "1.txt 2.txt 3.txt" filelistb = "a1.txt a2.txt a3.txt" my_fn "$filelista" $filelistb обрати внимание на использование "" для $filelista и их отсутствие для $filelistb при вызове my_fn -- Best regards, ASA mailto:llb@udm.ru