我有一个包含目录名称的文件:
my_list.txt :
my_list.txt
/tmp /var/tmp
我想在我添加目录名之前检查Bash,如果该名称已存在于文件中.
string bash file
bash ×1
file ×1
string ×1