I have two directories with a lot of files. In one directory there are files eg
file_0001 file_0002 ... etc,
and in the other directory files are
text_0001_file text_0002_file ... etc.
file_0001 and file
text_0001_file are the same, one pair. I need to find a file without a pair. So I need to compare only a part of a name. How can I do that in bash?