I have this bash command bellow (I think this is bash) but it's not overriding the last result. I've tried with only one ">" and ">|" as well, but no success.
My goal is to save only the last line on a .txt file (if possible just save the "time" parameter of ping) using linux terminal (I'm using Ubuntu 18.04).
while true; do (ping www.stackoverflow.com) >> rtt_test.txt; sleep 5; done