Created
August 16, 2014 21:12
-
-
Save veproza/a5995a314d48951ed7b7 to your computer and use it in GitHub Desktop.
Skript na samplovani disku po 0.5MB a sledovani, zda v samplu jsou same nuly (priblizne)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {0..1000000} | |
do | |
let skip=$i*1024 | |
dd if=/dev/sdb count=1 skip=$skip | wc -w >> output | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment