use of sed to replace a line in a file
Posted on 2013-05-31
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'