I have a file
test.txt which contains file names like below where some file names will have spaces and some will not.
Mon - Tue corrected item.csv Sat -Sun incorrect item.csv Wed_THU_corrected_item.csv
Now I have a script where I have a
for loop that is intended to find these files which are listed in
test.txt at a particular "path" where files will come daily just to make sure files exist. So please let me know how I can match such files that have spaces in their name.
for file in `cat test.txt` do if [ ! -f path/$file ]; then action item fi done