
###########################################################################
# Name    : bom_to_rm
# Purpose : Purpose of this routine is to convert a bom pathname to
#	    a rm command.
# Author  : Tripty Dhar
#
# HISTORY
#
# Date		Programmer	Comment
# 11/20/90	T. Dhar		Initial Coding
#
###########################################################################
#
#!/bin/sh
#
#
#   usage: bom_to_rm <bomfile>...
#
#   filter bomfile; ignore comments, print 'rm path' of all files (regular or
#   links). 
#

awk ' $0 !~ /^#/ { if (substr($2, 1, 1) == "-" || substr($2,1,1) == "l" ) \
printf "rm %s\n", $1 } ' $@

