I would like to extract the volume id which is associated with the location /dev/sdf
My script outputs the following:
I would like to pipe it to sed or perl to extract this ouput:
I got as far as this:
my_command | sed -n '/sdf/p'
but this gives me the whole line: