Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!netnews.upenn.edu!vax1.cc.lehigh.edu!lubkt From: lubkt@vax1.cc.lehigh.edu Newsgroups: comp.unix.shell Subject: sed help Message-ID: <99.2757f296@vax1.cc.lehigh.edu> Date: 1 Dec 90 23:12:38 GMT Organization: Lehigh University Lines: 11 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@pl118a.cc.lehigh.edu | bt00@lehigh.bitnet User Consultant, Lehigh University, Bethlehem, PA 18015 (215) 758-3984