From owner-freebsd-questions@FreeBSD.ORG Tue Aug 12 04:45:42 2003 Return-Path: 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 37DB737B401 for ; Tue, 12 Aug 2003 04:45:41 -0700 (PDT) Received: from kyblik.pieskovisko.sk (kyblik.pieskovisko.sk [213.215.72.42]) by mx1.FreeBSD.org (Postfix) with SMTP id ED5EB43F93 for ; Tue, 12 Aug 2003 04:45:40 -0700 (PDT) (envelope-from frankie@kyblik.pieskovisko.sk) Received: (qmail 85974 invoked by uid 19508); 12 Aug 2003 11:45:37 -0000 Date: Tue, 12 Aug 2003 13:45:37 +0200 From: "Michal F. Hanula" To: questions@freebsd.org Message-ID: <20030812114537.GA80378@kyblik.pieskovisko.sk> Mail-Followup-To: "Michal F. Hanula" , questions@freebsd.org References: <3F380F5D.6020904@rbcmail.ru> <3F3815F5.5070302@obfuscated.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <3F3815F5.5070302@obfuscated.net> User-Agent: Mutt/1.5.4i Subject: Re: simple sh scripting. How to put a result of a command to a variable? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 11:45:42 -0000 --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 11, 2003 at 06:17:25PM -0400, Michael Conlen wrote: > #!/bin/sh > for i in `ls *.zip` Useless use of backticks --- what about for i in *.zip ? > do > unzip ${i} -d ${i}.unzipped > done --=20 What do you care what other people think? --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/ONNh4PY2BaN84VwRAuP/AJoD4+jRAFkOTrUT+lY5ociIdV95MwCdHOrR t2Hl7JayQPMGV9wi7NiVPs4= =AY/S -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--