Print everything on line after match [duplicate]

Strangely, the accepted answer printed out the whole line, where I just wanted all the info after the target string. This worked for me:

sed -n 's/target_string//p' filename

Adapted from this post

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)