Assuming you have a find command of
find . -type f -name '*.log'
Then it’s as simple as:
for item in $(find . -type f -name '*.log' ) ;do cat /dev/null > $item ;done
Handy for truncating log files…
Assuming you have a find command of
find . -type f -name '*.log'
Then it’s as simple as:
for item in $(find . -type f -name '*.log' ) ;do cat /dev/null > $item ;done
Handy for truncating log files…