#!/bin/sh set -e echo "Truncating log files" for file in $(find /var/log/ -type f); do : > "${file}" done