Thanks for your quick response. You are right, there might be spaces at the start of the line and before the curly brace, so I changed the regex to: '^[[:space:]]*/dev[-_/[:alnum:]]*[-_[:alnum:]]+[[:space:]]+{'
I also fixed the return-values and that _very_ stupid "echo $HDPARM" error... Sorry :)
Thanks for your quick response. You are right, there might be spaces at the start of the line and before the curly brace, so I changed the regex to: '^[[:space: ]]*/dev[ -_/[:alnum: ]]*[-_[ :alnum: ]]+[[:space: ]]+{'
I also fixed the return-values and that _very_ stupid "echo $HDPARM" error... Sorry :)