Off Topic - Bash Question

Filippos Klironomos PresarioD at gmail.com
Tue Sep 28 20:15:22 UTC 2004


> 
> 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.
> 

fileName="some file name with spaces"
md5sum=`md5sum "$fileName"`

this should do it.




More information about the fedora-list mailing list