I could not get that command to work:
sed /[Hh|Rr].1/{s/P1/S1/s/p1/s1/} D:\pat.txt > D:\pat_mod.txt
returns:
sed: newline or end of file found in pattern
The name specified is not recognized as an
internal or external command, operable program or batch file.
Hi,
I need to edit a file using SED and replace a string but maintain the case of the original string.
ie Change:
HRP1 to HRS1
hrp1 to hrs1
HrP1 to HrS1
I can do this with multiple edit commands but wondered if there was a way of doing it in one edit command ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.