From owner-freebsd-questions@FreeBSD.ORG Fri Nov 16 13:45:43 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B40E416A418 for ; Fri, 16 Nov 2007 13:45:43 +0000 (UTC) (envelope-from dave.list@pixelhammer.com) Received: from smtp1.tls.net (smtp1.tls.net [65.196.224.82]) by mx1.freebsd.org (Postfix) with ESMTP id 4A07E13C465 for ; Fri, 16 Nov 2007 13:45:42 +0000 (UTC) (envelope-from dave.list@pixelhammer.com) Received: (qmail 99502 invoked from network); 16 Nov 2007 13:56:19 -0000 Received: by simscan 1.2.3 ppid: 99484, pid: 99497, t: 0.8507s scanners: attach: 1.2.3 clamav: 0.91.1/m:44/d:4808 spam: 3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on smtp1.tls.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=20.0 tests=ALL_TRUSTED,TVD_RCVD_IP autolearn=disabled version=3.2.1 Received: from 64-184-9-196.bb.hrtc.net (HELO ?192.168.0.109?) (ldg@tls.net@64.184.9.196) by auth-smtp1.tls.net with ESMTPA; 16 Nov 2007 13:56:18 -0000 Message-ID: <473D9EDD.9030207@pixelhammer.com> Date: Fri, 16 Nov 2007 08:45:01 -0500 From: DAve User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <52275.12.170.206.13.1195184604.squirrel@admintool.trueband.net> In-Reply-To: <52275.12.170.206.13.1195184604.squirrel@admintool.trueband.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: bash and strings 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, 16 Nov 2007 13:45:43 -0000 jhall@vandaliamo.net wrote: > Everyone, > > I'm sure this is easy, and I am making it harder than it is. > > I am being supplied a list of files, and need to create the files and > directories to hold them, but I cannot figure out how to take the string > apart. > > For example, I am given > > /usr/local/scripts/firewall.sh > > I need to create the /usr/local/scripts directory and then create > firewall.sh. > > Any suggestions would be greatly appreciated. > http://search.yahoo.com/search?p=bash+scripting+tutorial Can't recommend it enough, the Advanced Bash-Scripting Guide. A very handy bookmark to keep around. DAve -- I've been asking Google for a Veteran's Day logo since 2000, maybe 1999. I was told they finally did a Veteran's Day logo, but none of the links I was given return anything but a normal Google logo. Sad, very sad. Maybe the Chinese Government didn't like it?