Saving the total bytes written using TAR to a textfile
The TAR command in Linux has an option to display the total bytes written after creating an archive by adding --totals. No problem with using it like the syntax stated below:
tar -cvf mp3.tar mp3 --totals
But how can you save the total bytes in a textfile? I tried this syntax but it didn't work as expected:
tar -cvf mp3.tar mp3 --totals > test.txt
Is there a command that offers more convenience or an easier way just to get the tarred file size information?