Off Topic - Bash Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# 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@xxxxxxx
http://www.ycc.com
SPAMstomper Protected email


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux