Link to home
Start Free TrialLog in
Avatar of atorex
atorex

asked on

use of sed to replace a line in a file

Im trying to run this string to update a file using sed but I'm getting an error, any help is appreciated.

sed -i 's/^user:$2a$10$xDaSTFrgvbBLei/sKK3sWeVVwJBUGTJjEn/AxrTCrdlZhm4aLVsI2:15854::::::/user:$2a$10$oQXSUBcZBognRNghQ63GBexOg8sX1gZuks06xRRO9BXdWQrZinI3u:15856::::::/' /etc/shadow

error returned is
sed: -e expression #1, char 51: unknown option to `s'

Regards,
SOLUTION
Avatar of PtitPinpin
PtitPinpin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of atorex
atorex

ASKER

thanks