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$xDaSTFrgvb BLei/sKK3s WeVVwJBUGT JjEn/AxrTC rdlZhm4aLV sI2:15854: :::::/user :$2a$10$oQ XSUBcZBogn RNghQ63GBe xOg8sX1gZu ks06xRRO9B XdWQrZinI3 u:15856::: :::/' /etc/shadow
error returned is
sed: -e expression #1, char 51: unknown option to `s'
Regards,
sed -i 's/^user:$2a$10$xDaSTFrgvb
error returned is
sed: -e expression #1, char 51: unknown option to `s'
Regards,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER