I want to grep a complete line from a file. This has to be done inside a function. I am not able to get it.
function password_strength()
{
strength_value=`cat /etc/pam.d/system-auth |grep -E "password requisite pam_cracklib.so try_first_pass retry=3 type="`;
echo $strength_value;
}
Here the strength_value returns null even after there is content.