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