[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Flamewars & Why pedantic spelling is good.



On Thu, Dec 20, 2001 at 03:57:29PM -0400, Ben Armstrong wrote:
> On Thu, Dec 20, 2001 at 11:44:35AM +0100, Tollef Fog Heen wrote:
> > tfheen@arabella ~ > apt-cache show autodns-dhcp | grep "zone file"
> > tfheen@arabella ~ > 
> > 
> > Because apt-cache is smart. :)
> 
> Ahem,
> 
> synrg@sanctuary:~$ apt-cache show autodns-dhcp | egrep '(zone)|(file)'

'zone.?file' would be better. or 'zone[ -]?file'.


anyone who's searching for something and doesn't want to waste their
time or miss any matches will use a regexp(*) that matches all variant
spellings.

e.g.

$ apt-cache search colou?r
[254 matches deleted]


or:

$ apt-cache search zone.?file
autodns-dhcp - Automatic DNS updates for DHCP
dhcp-dns - Dynamic DNS updates for DHCP
dnscvsutil - Maintain DNS zone files under CVS control
ldap2dns - LDAP based DNS management system.
zone-file-check - Syntax-checker for BIND zonefiles

$ apt-cache search --full zone.?file | egrep '^Package:|^$|zone.?file'
Package: autodns-dhcp
 autodns-dhcp uses bind 8's dynamic update features to update a zonefile

Package: dhcp-dns
 dhcp-dns uses bind 8's dynamic update features to update a zonefile

Package: dnscvsutil
Description: Maintain DNS zone files under CVS control
 Maintain your DNS zone files under CVS control, and

Package: ldap2dns
 administration overhead: No more flat file editing, no more zone file

Package: zone-file-check
Filename: pool/main/z/zone-file-check/zone-file-check_1.01-3_all.deb
Description: Syntax-checker for BIND zonefiles
 This script is used for syntax-checking your zone-files after a
 of zonefiles, but also if you just want to check a single file.





(*) whining "but i don't know regexps" is not a valid excuse for not
using the right tool for the job....especially when the tool is simple
to learn and of broad general use.  if you want to do a job, you need to
learn how to use the tools for that job.

craig

-- 
craig sanders <cas@taz.net.au>

Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch



Reply to: