Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- CWD=$(pwd)
- rm -fv $CWD/Deltik.out
- rm -fv $CWD/sitaram.out
- rm -fv $CWD/PeterCordes.out
- rm -fv $CWD/Fanatique.out
- rm -fv $CWD/harrymc.2.out
- rm -fv $CWD/harrymc.1.out
- find $CWD/toor/ | xargs -P4 rm -rf
- mkdir -pv $CWD/toor/
- cd $CWD/toor/
- echo {0..999} | xargs mkdir -p
- find -type d -exec bash -c "cd {}; echo {0..999} | xargs touch" \;
- find | wc -l
- find -type d | wc -l
- find -type f | wc -l
- for i in {0..9} ; do chmod -R 0777 "$(pwd)" ; { time { find "$(pwd)" -type d | xargs -P4 chmod 755 & find "$(pwd)" -type f | xargs -P4 chmod 644 & wait ; } ; } 2>&1 | tee -a $CWD/Deltik.out ; done
- for i in {0..9} ; do chmod -R 0777 "$(pwd)" ; { time chmod -R a=,u+rwX,go+rX "$(pwd)" ; } 2>&1 | tee -a $CWD/sitaram.out ; done
- for i in {0..9} ; do chmod -R 0777 "$(pwd)" ; { time find "$(pwd)" \( -type d -exec chmod 755 {} + \) -o \( -type f -exec chmod 644 {} + \) ; } 2>&1 | tee -a $CWD/PeterCordes.out ; done
- for i in {0..9} ; do chmod -R 0777 "$(pwd)" ; { time { find "$(pwd)" -type d -print0 | xargs -0 chmod 755 ; find "$(pwd)" -type f -print0 | xargs -0 chmod 644 ; } ; } 2>&1 | tee -a $CWD/Fanatique.out ; done
- for i in {0..9} ; do chmod -R 0777 "$(pwd)" ; { time { find "$(pwd)" -type d -exec chmod 755 {} + ; find "$(pwd)" -type f -exec chmod 644 {} + ; } ; } 2>&1 | tee -a $CWD/harrymc.2.out ; done
- for i in {0..0} ; do chmod -R 0777 "$(pwd)" ; { time { find "$(pwd)" -type d -exec chmod 755 {} \; ; find "$(pwd)" -type f -exec chmod 644 {} \; ; } ; } 2>&1 | tee -a $CWD/harrymc.1.out ; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement