find pattern and replace the text before it

i am editing a big log file with the following pattern:

 
Date: xxxx          Updated: name
Some log file text here
Date: eee           Updated: ny
Some log file text here

Basically i want to remove all the text in a line before the "Updated" pattern. I sill want to print the other lines

Updated: name
Some log file here
Updated: ny
Some log file here

I really appreciate your help.

---------- Post updated at 08:41 AM ---------- Previous update was at 08:27 AM ----------

the title should be "find pattern and delete the text before it"

awk '{if ($3=="Updated:"){print $3,$4}else{print $0}}' file

thanks so muck, it works! :slight_smile:

sed:

sed 's/.*\(Updated:\)/\1/' infile

thank you so much :slight_smile: