I need to extract the archive and create an empty file in each of the folders contained in the archive.
I tried this:
for folder in `ls -d1 */` ; do touch "${folder}/COMPLETE"; done;
It works perfectly until someone creates a folder with a space in its name.
How to do this for all folders with or without spaces?
\ Hugo
source
share