I would like to put the output of a command into a variable. As far as I know, you have to use either of these:variable=$(command)variable=`command`The following should work from my point of view:for i in $(ls -1); do    modTime=$(/usr/gnu/bin/date -r $i +$F)    echo $modTimedoneI tried backticks as well; nothing changes. If it is important, it's a bash shell.
Writing output of command to variable
bash;shell script;command substitution