Skip to content

Instantly share code, notes, and snippets.

@veproza
Created August 16, 2014 21:12
Show Gist options
  • Save veproza/a5995a314d48951ed7b7 to your computer and use it in GitHub Desktop.
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)
#!/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