sed help
lubkt at vax1.cc.lehigh.edu
lubkt at vax1.cc.lehigh.edu
Sun Dec 2 10:12:38 AEST 1990
A question on sed:
I want to replace a string xyz:KJSDKJSDJS: by xyz:: in a
password file. The string "KJSDKJSDJS" is arbitrary. So I try:
sed -e 's/xyz:\??:/xyz::' $passwd
I guess the regular expression \?? should match any string, but does
not work. I know I am goofing somewhere. Any hints? Thanks.
/Binod.
--------------------
Binod Taterway bt00 at pl118a.cc.lehigh.edu | bt00 at lehigh.bitnet
User Consultant, Lehigh University, Bethlehem, PA 18015 (215) 758-3984
More information about the Comp.unix.shell
mailing list