Ok when I run this and search by key word "Brittney", "Morris", or "britm" nothing is removed
Sample Code:
------------
#!/bin/sh
echo Enter a userid or name to search for and remove:
read wrd
sed -e "`grep -n -w $wrd ~/test | awk -F':' '{printf \"%dd;\",$1}'`" ~/test