I am working on some stuff where I am storing data in a file. But each time I run the script it gets appended to the previous file.
I want help on how I can remove the f
if [ $( ls ) ]; then rm ; fi
Also, if you redirect your output with > instead of >> it will overwrite the previous file
>
>>