Oneliners

A collection of handy one-line bash wizardry to get things done

pvdisplay | grep '/dev/sd.' -o | while read -r line; do smartctl -a "$line"; done > smartctl.report