0

I would like to replace rs101 to rs102, however it shows unterminated "s" command with this.

sed -i 's/rs101/rs102' file.name.

Is there any other solution ?

1
  • Syntax is : s/regexp/replacement/ Commented Nov 3, 2016 at 8:05

1 Answer 1

1

You should insert / after rs102 .

sed -i 's/rs101/rs102/' file.name.

Syntax for Search and Replace:

sed 's/search/replace/' file.name
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.