Wildcard on redirection

Jos Chrispijn bsduser at cloudzeeland.nl
Sat Aug 5 12:01:27 UTC 2017

I have this number of .log files which I would like to empty.


echo > *.log

unfortunately doesn't work so I created

foreach file in (/myfiles/log/*log)
   echo "" > $file

but that sequence is not recognized at all.

Can you tell me how to solve? Thanks!

More information about the freebsd-questions mailing list