I have been trying to write a program that will take the volume adjustment stat in Sox, and store it in a variable.
To do this you have to do
sox *your-audio-file* -n stat
,
and the final line will show the stat that I want.
However, when I try to store the whole output of that command in the variable INITSTAT, it remains blank, and the line of code that should be storing the output in the variable is just printing the output to the terminal. This is what I have:
INITSTAT=`sox $audioFilePath -n stat`
echo $INITSTAT
Where "$audioFilePath" is the path to the audio file I am trying to get the information about.
If anybody knows what is wrong, any help would be appreciated.