Advertisement
kolbka_

Untitled

Feb 6th, 2022
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #! /usr/bin/env bash
  2. find /etc/ -type f -name "*.conf" | xargs tar --totals -cvf tmp.tar 2>/dev/null >/dev/null
  3. mkdir hwtmp
  4. cd hwtmp
  5. tar -xf ../tmp.tar
  6. cd etc/
  7. find -type f -name "*.conf" | xargs tar -cvf archive.tar -z >/dev/null
  8. mv archive.tar ../../
  9. cd ../../
  10. rm hwtmp -r
  11. rm tmp.tar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement