I am trying to delete any line of text that contains "$npname" and the word "in." The script works if $npname is only one word, but if it is more than one work I get "error: unterminated address regex" How can I fix this?
sed '/'$npname'.*in/d' parts.txt > parts.tmp