Off Topic - Bash Question
Bill Gradwohl
bill at ycc.com
Tue Sep 28 19:57:31 UTC 2004
# This works
fileName='abc.xyz'
md5sum=$(md5sum ${fileName})
# This doesn't
fileName='spaces in file name.xyz'
md5sum=$(md5sum ${fileName})
How do you write the $(...) statement to allow for filenames containing
spaces. I've tried various things ("...", '...', \"...\", \'...\',
IFS='\n', etc) and none worked. I can't seem to get the syntax right.
--
Bill Gradwohl
bill at ycc.com
http://www.ycc.com
SPAMstomper Protected email
More information about the fedora-list
mailing list