I am trying to run this:
watch -n 0.25 --color "unbuffer iostat -h && ls -lAh ./backup.tar.gz | awk '{ print $5 }'"
Now it almost does what it should, except the awk part which seems to be fully ignored. I get the full output of ls instead of just the file size:
-rw-r--r-- 1 root root 2,7G Jul 16 17:52 ./backup.tar.gz
I assume I need to put apostrophes or so in there and tried around, but couldn't find a solution there. At least not using awk.
Thanks!