#!./nistcl
#
# Copyright (C) 1994 Matthew R. Wette -- All rights reserved.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appears in all copies.  Matthew R. Wette
# makes no representations about the suitability of this software for any
# purpose.  It is provided "as is" without express or implied warranty.
#
# ntlist -
#
# history -
#	03Feb94	M.Wette: created.
#
# version -
#	$Id: match,v 1.1 1994/02/04 18:24:31 mwette Exp $

#source $nis_library/nis.tcl

if {$argc==0} {
  regsub {\..*$} [nis_local_principal] "" user
  puts stdout [nis_cat passwd.$nis_cwd]
} else {
  puts stdout [nis_cat [lindex $argv.$nis_cwd 0]]
}
