Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env bash
- find /etc/ -type f -name "*.conf" | xargs tar --totals -cvf tmp.tar 2>/dev/null >/dev/null
- mkdir hwtmp
- cd hwtmp
- tar -xf ../tmp.tar
- cd etc/
- find -type f -name "*.conf" | xargs tar -cvf archive.tar -z >/dev/null
- mv archive.tar ../../
- cd ../../
- rm hwtmp -r
- rm tmp.tar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement