Da página que você vinculou:
Options:
-f, --file [file]file to write to, defaults to./CHANGELOG.md, use-for stdout
Observe que traço é uma maneira bastante comum de marcar stdin / stdout.
Com base nesse texto, isso provavelmente funcionaria:
$ changelog -f - | tee SashaVersion.txt CHANGELOG.md
Embora ainda imprima uma cópia da saída para o terminal, qualquer um desses fatores inibe isso:
$ changelog -f - | tee SashaVersion.txt > CHANGELOG.md
$ changelog -f - | tee SashaVersion.txt CHANGELOG.md > /dev/null
Se -f - não funcionar, tente -f /dev/stdout .
É claro que, se você estiver executando o zsh, nem precisará de tee :
zsh$ changelog -f - > SashaVersion.txt > CHANGELOG.md
Em todos eles, substitua > por >> se você quiser que o novo texto seja anexado ao arquivo, em vez de sobrescrever o arquivo. Se você quisesse que a saída sobrescrevesse SashaVersion.txt e também fosse anexada a CHANGELOG.md , além de ser escrita em stdout, você poderia fazer:
$ changelog -f - | tee SashaVersion.txt | tee -a CHANGELOG.md
Ou com zsh :
$ changelog -f - >&1 > SashaVersion.txt >> CHANGELOG.md