I have this sed script that I am working on to delete the whole line in my OTU table when the species listed in a text file are found in my OTU table.
The script that I have right now and that doesn't work is below, but I can't make it work. Anyway, if you could please help me ASAP it would be very appreciated.
(read each line, search for it in my table and delete line, infile)
for i in $(cat /my/path/species.txt); do
sed -i '/"$i"/d' /my/path/ITS.OTU.table.tsv
done
thanks so much