I have a
shell script that checks to see if a name has been added to a text file before it runs that part of the script. If it does find that name it skips this section of the script.
Here is an example of the conflict:
if ! grep "netherlands-antilles" uploaded.txt; then // Do some work here echo netherlands-antilles >> uploaded.txt fi
if ! grep "netherlands" uploaded.txt; then // Do some work here echo netherlands >> uploaded.txt fi
Netherlands Antillies is already in the text file, it doesn't run the "Netherlands" part of the script, which I really need it to.
Is there a way to have
grep not just search for part of the string? I don't want a search for
netherlands to match