I am trying to automate the use of shred
and putting the output into log files. Currently I am copying the serial number manually using
hdparm -I /dev/sd? | grep 'Serial\ Number'
I know that there is a way to have grep
give me only the number and not the "Serial Number" text before it but I don't know how. Could someone how knows reg expressions help me?