I have this number of .log files which I would like to empty. Using echo > *.log unfortunately doesn't work so I created foreach file in (/myfiles/log/*log) echo "" > $file end but that sequence is not recognized at all. Can you tell me how to solve? Thanks!