0
good afternoon. I would like the help of the people. I am writing a scrip to separate songs in function from their duration in seconds using the soxi command of the Sox(apt install Sox) package. I want to compare the value obtained with a number to determine if the music is big or small. I tried the scrip below but not having success.
echo "Separando faixas..."
tamanho=$(soxi -D audio.flac)
if $tamanho < 330
then
echo "musica com tamanho normal"
else
echo "musica com tamanho grande"
fi
echo "Feito."