From owner-freebsd-questions@FreeBSD.ORG Fri Oct 14 19:35:51 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E165A16A421 for ; Fri, 14 Oct 2005 19:35:51 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from relay03.roc.ny.frontiernet.net (relay03.roc.ny.frontiernet.net [66.133.182.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id A086143D6A for ; Fri, 14 Oct 2005 19:35:43 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter10.roc.ny.frontiernet.net (filter10.roc.ny.frontiernet.net [66.133.183.77]) by relay03.roc.ny.frontiernet.net (Postfix) with ESMTP id C13C7358278 for ; Fri, 14 Oct 2005 19:35:40 +0000 (UTC) Received: from relay03.roc.ny.frontiernet.net ([66.133.182.166]) by filter10.roc.ny.frontiernet.net (filter10.roc.ny.frontiernet.net [66.133.183.77]) (amavisd-new, port 10024) with LMTP id 00952-01-91 for ; Fri, 14 Oct 2005 19:35:40 +0000 (UTC) Received: from blacklamb.mykitchentable.net (67-51-164-214.dsl1.elk.ca.frontiernet.net [67.51.164.214]) by relay03.roc.ny.frontiernet.net (Postfix) with ESMTP id 5B9E73582E1 for ; Fri, 14 Oct 2005 19:35:06 +0000 (UTC) Received: from [165.107.42.123] (unknown [165.107.42.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 72E0C1549FC for ; Fri, 14 Oct 2005 12:35:05 -0700 (PDT) Message-ID: <435007F3.8000106@mykitchentable.net> Date: Fri, 14 Oct 2005 12:33:07 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.2 (20050629) at filter10.roc.ny.frontiernet.net Subject: Help With 'for' Loop X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 19:35:52 -0000 Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "*.gif" -print` do echo -e "\n$i" done The first line 'find' returns is "/multimedia/Pictures/1998 Christmas/April01.JPG" Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the first space. Is it possible to get 'i' to represent the whole string that 'find' returns? If so, how? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com