Well, I needed a way to watch the mdstat progress (because a disk just failed …). 1 2 3 #!/bin/bash watch -n1 cat /proc/mdstat