From owner-freebsd-hackers Sun Jul 23 17:24:14 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id RAA20899 for hackers-outgoing; Sun, 23 Jul 1995 17:24:14 -0700 Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id RAA20858 for ; Sun, 23 Jul 1995 17:24:01 -0700 Received: from localhost.cs.tu-berlin.de ([130.149.1.123]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id CAA08913; Mon, 24 Jul 1995 02:14:39 +0200 Received: (from w@localhost) by localhost (8.6.9/8.6.9) id LAA00643; Sun, 23 Jul 1995 11:14:40 +0200 Date: Sun, 23 Jul 1995 11:14:40 +0200 From: Wolfram Schneider Message-Id: <199507230914.LAA00643@localhost> To: "Julian Stacey " Cc: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch), aturetta@stylo.italia.com (Angelo Turetta), freebsd-hackers@freebsd.org Subject: Re: your mail In-Reply-To: <199507142015.WAA13566@vector.eikon.e-technik.tu-muenchen.de> References: <199507141111.NAA04791@uriah.heep.sax.de> <199507142015.WAA13566@vector.eikon.e-technik.tu-muenchen.de> Replyt-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: hackers-owner@freebsd.org Precedence: bulk Julian Stacey writes: > > > whatis `ls -1 /usr/share/man/man1/??.1* | sed -e 's/.*[/]//' -e 's/\.1.*//'` > It's a syntax err ! > sed: 1: "s/.*[/]//": RE error: brackets ([ ]) not balanced > > didnt work in bash csh sh tcsh, or a file invocation for me, > not that it matters ;-) > Julian S 4.4BSD sed is broken. You must quote '/'in brackets, eg. sed -e 's/.*[\/]//' Better solution: $ grep '^..(1)' /usr/share/man/whatis Wolfram