1

I'd like to replace Music by Music/Oliver

The command:

find ./ -type f -exec sed -i 's/Music/MusicOliver/gI' {} \;

How do I insert the / without interrupting the command? I've tried with "string" and 'string' but it didn't work.

Thanks for your hints!

1

1 Answer 1

1

You can use a different delimiter for sed command like

find ./ -type f -exec sed -i 's|Music|Music/Oliver|gI' {} \;
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.