Delete to eol after pattern with sed

working on interactive ftp script
saving log and want to remove the password from log
so

 "quote PASS foofoo"

would become

"quote PASS XXXXXXX"

replacing or removing the password is of no matter

have tried several sed commands but have only been successful with character matching not pattern

thanks
pp

what exactly have you tried and failed?

various attempts now trying to work with

sed s/PASS[^PASS]*$//

as a starting point
it will do in a pinch but really what i want

never mind

sed s/[^PASS]*$//

works

needed to get my thoughts right

thanks

---------- Post updated at 04:01 PM ---------- Previous update was at 01:48 PM ----------

correction

sed s/PASS.*$/'PASS XXXXXXX'/

apologies
example follows:

[ppaprota@pettallc ~]$

echo "quote PASS hidemypass" | sed s/'quote PASS.*$'/'quote PASS XXXXXXX'/

quote PASS XXXXXXX
[ppaprota@pettallc ~]$