Hi all,

I am trying to use sed to seach and replace text in text files.


the problem is I can't find how to use an expression starting with a
back slash and replace it with a %

here is what I want:

sed 's/\barNumberCheck/%/' 445n.ly >445w.ly 

one line from the file: g'4. d'8 g'4. b'16 [ b'16 ] | \barNumberCheck
#20

What I want to happen: g'4. d'8 g'4. b'16 [ b'16 ] | % #20

obviously my attempt doesn't work.
I need I gather to quote the backslash somehow, how?

Thanks,
Aaron

Also does the percent sign need quoting?

Thanks,
A sed novice,
Aaron


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to