Task: Check if a String Exists in a File with Bash
Task: Check if a String Exists in a File with Bash: a task in Terminal-Lego-15k (Harbor dataset). Write a Bash script that checks whether a given string (directory name) already exists in a text file before adding it. The script should prevent duplicate entries from being added to the file.
The task
Write a Bash script that checks whether a given string (directory name) already exists in a text file before adding it. The script should prevent duplicate entries from being added to the file.
Part of PrimeIntellect/Terminal-Lego-15k.