Page MenuHomePhabricator
Paste P196

(An Untitled Masterwork)
ActivePublic

Authored by raster on Mar 6 2017, 9:50 PM.
#!/bin/sh
cd /var/logs
for Y in *; do
pushd $Y
for M in *; do
pushd ..
tar zcvf /tmp/log-$Y.$M.tar.gz $Y/$M
popd
done
popd
done
raster created this paste.Mar 6 2017, 9:50 PM
raster created this object with visibility "Public (No Login Required)".