Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- comment="Document $(date +%Y%m%d-%H%M%S)"
- file=${comment}.rar
- echo -n ${comment} > commentaire.txt
- touch liste.txt
- find . -maxdepth 1 -type f | cut -b 3- | sort -f -V > liste.txt
- rar a "${file}" -k -rr -p -hp -m5 -r- -s- -scFcgl -z"commentaire.txt" @"liste.txt"
- comment2="SebastienDocument $(date +%Y%m%d-%H%M%S)"
- file2=${comment2}.rar
- echo -n ${comment2} > commentaire2.txt
- touch liste2.txt
- find Administratif/ "emploi Sebastien"/ SEBASTIENdocuments/ commentaire2.txt liste2.txt keys/ "old mdp"/ -maxdepth 1 -type f | sort -f -V > liste2.txt
- rar a "${file2}" -k -rr -p -hp -m5 -r- -s- -scFcgl -z"commentaire2.txt" @"liste2.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement