I'm never sure how to deal with spaces in filenames with bash scripting.
e.g. If I have a line like
for i in `find . -name '*.txt'` ...
and one of the filenames in the current directory has spaces in it, it will return an 'i' for each word in the name.
What's the correct way to deal with this?
e.g. If I have a line like
for i in `find . -name '*.txt'` ...
and one of the filenames in the current directory has spaces in it, it will return an 'i' for each word in the name.
What's the correct way to deal with this?