next up previous contents
Next: Internal representation Up: Examples of the dbview* Previous: dbviewall

dbviewrall

The instruction

  dbviewrall filename regexp
generates a prettyprint of all the available attribute-value pairs (i.e. Orth A3 B1 C1 D1) matching regular expression regexp in file sfb.lex.


Example:

  dbviewrall sfb.lex Mu.*r

Entry 372: Mutter
  Orth:	Mutter
  A3:	mU!t6
  B1:	nomen,akk,fem,sg,@empty@,@empty@,Raute,@empty@
	nomen,nom,fem,sg,@empty@,@empty@,Raute,@empty@
  C1:	Nom,OBJEKTTYP
  D1:	nom

Entry 373: Muttern
  Orth:	Muttern
  A3:	mU!t6n
  B1:	nomen,akk,fem,pl,@empty@,@empty@,Raute,@empty@
	nomen,nom,fem,pl,@empty@,@empty@,Raute,@empty@
  C1:	@empty@
  D1:	@empty@
WARNING: The instruction dbviewrall sfb.lex Orth A3 B1 C1 D1 .* prettyprints the whole lexicon database - since this is currently 15224 lines, watch out!
Code:
#!/bin/sh
# dbviewall
# D. Gibbon
# 6.1.1995
# Prettyprint all attributes
# for a given word
# (see dbview)

dbviewr $1 `head -n1 $1` $2



Dafydd Gibbon
Sat Mar 23 23:18:08 MET 1996