From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 08:19:02 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86AF016A407 for ; Sun, 31 Dec 2006 08:19:02 +0000 (UTC) (envelope-from d1945@sbcglobal.net) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.freebsd.org (Postfix) with SMTP id 4C66D13C44C for ; Sun, 31 Dec 2006 08:19:02 +0000 (UTC) (envelope-from d1945@sbcglobal.net) Received: (qmail 26074 invoked from network); 31 Dec 2006 07:52:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=pDW2WxuwUqOOJoa+36eStzbni+Dpk8tQJoOxVsj58M0Zi//echxx7c1KRE3oydLoZIBDY9L2wglU5c07LbwdUX9KNQIqS1MvU7JNEBhF8VIPqYs7DsKDjTe+orWoCbFeLHMLxfF35I5h2KXSibeCmeVTTqW+1o9n3QDOQq3lf0c= ; Received: from unknown (HELO home) (d1945@sbcglobal.net@69.104.191.121 with login) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 31 Dec 2006 07:52:21 -0000 X-YMail-OSG: Qc1VRKYVM1mRDzyq3mVo_EY9EiVhMi_OGlI7GfDsmWS1NlAuLG5LpzPMOzDp7IhOkzRP2b4kUz1G5ZCrZ0msrTPxaC3aUtfafXOt64ixE4Pe7v2oMNyo9w2EZemt_OTtljMN5DN7ltQgGoTjwsvFhhT5Nvz1nzb1ve7csI_aeHPtUGrnfGxMZ4tKV..5 Received: by home (sSMTP sendmail emulation); Sat, 30 Dec 2006 23:52:20 -0800 Date: Sat, 30 Dec 2006 23:52:20 -0800 From: George To: questions@freebsd.org Message-ID: <20061231075220.GA1020@home> Mail-Followup-To: questions@freebsd.org References: <20061230150403.GA4674@host.my.domain> <17814.33476.413912.221142@jerusalem.litteratus.org> <20061230182206.GA5557@host.my.domain> <200612301822.09750.lane@joeandlane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612301822.09750.lane@joeandlane.com> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: Is there reference manual for sh? 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: Sun, 31 Dec 2006 08:19:02 -0000 On Sat, Dec 30, 2006 at 06:22:09PM -0600, Lane wrote: > On Saturday 30 December 2006 12:22, a@zeos.net wrote: > > On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert Huff wrote: > > > a@zeos.net writes: > > I need any online complete manual on sh, not a brief as it is man > > sh. The last one doesn't describe many features both interactive > > (command line editing, using history interactively, and many others) > > and scripting (for example, conditional expressions). > > Here's a "brute-force" manual: > > #!/bin/sh > for each in `find /etc/rc.d` > do more $each > done Bonus points for not using cat, but it sounds like you're recommending a manual you yourself haven't read. $ for each in /etc/rc.d/* ; do more $each ; done Or skipping the unecessary logic: $ more /etc/rc.d/* Sarcasm is mostly counterproductive, doncha think? > If you need more than what is there then you probably need Kernigan > and Ritchie's The "C" Programming Language, (still) available on > amazon.com. My guess is the OP is inquiring about scripting in general, but bash(1) and readline(3) in particular. If that's the case, the manpages should be more than adequate; a reading of Mendel Cooper's Advanced Bash Scripting Guide (available for free at a Google search near you) would also be useful for a practical perspective. Recommending the K&R book I don't think is appropriate. >