Added "beginning of the line" metachars to sed