#!/bin/sh
# xrmresource  -- removes selected resources from a file
# xrmresource app-name reg-exp <file> 
# if no file is specified, reads from standard input
tmpdir=${S_TMPDIR:-$SHOME/tmp}
tmpfile=$tmpdir/xrmr$$
sed "/$1[^:]*$2/d" $3 > tmpfile
mv tmpfile $3
