Tokyoahead

News
News
Architecture
Architecture
Asian Cooking
Asian Cooking
Finance
Finance
Galapagos
Galapagos
Technology
Technology
Trips & Sights
Trips & Sights
  

How to zip all logfiles recursive

You have many subdirectories with logfiles and want to zip them individually:


find /home/*/logfiles/ -name *.log -exec bzip2 -9 {} ;


this takes all logfiles directly under all user's homedirectories and zips them

Last Update: 2007-09-14 10:19:50
 FAQ > Operating Systems  > Linux  > Non-Distro-Specific