The code is inside a loop that redirects output to a file. That file is then tested for whether it's empty or not. So, at the beginning of each iteration of the loop, I want to empty the file.
Can you tell me how to do that?
Something like this would be nice:
for ... do
$FILE < EOF
command 2> $FILE
if $FILE not empty