I wanted to pass the path name to the script, but my path has spaces (eg. /Users/netto/iTunes Media/Music/).
I have tried putting the actual path directly on the for loop, and I was able to get all the files. Unfortunately, I could not pass it as variable. I have tried both double quote, and single quote. This is what I have currently
$PATH=$1
for f in $PATH; do
echo "Processing file $f "
done
Please let me know on how to do this.
Thank you in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…