I have a log file and simple bash script:
echo -e "$date $totalsize $dupsize $per" > log.txt
But when I execute this script, it write first line of log.txt and show me just last data.
I tried \n but does not working.
How can I write to new line when I execute this script?