Re: Off Topic - Bash Question

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

 



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


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

  Powered by Linux