Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 1995 11:14:40 +0200
From:      Wolfram Schneider <w@cs.tu-berlin.de>
To:        "Julian Stacey <jhs@vector.eikon.e-technik.tu-muenchen.de>" <jhs@vector.eikon.e-technik.tu-muenchen.de>
Cc:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch), aturetta@stylo.italia.com (Angelo Turetta), freebsd-hackers@freebsd.org
Subject:   Re: your mail 
Message-ID:  <199507230914.LAA00643@localhost>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507230914.LAA00643>