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.

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!



More information about the freebsd-questions mailing list