Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!umbc3!math13.math.umbc.edu!rouben From: rouben@math13.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.unix.questions Subject: Re: Changing back slashes to forward slashes Keywords: tr, sed, PC, port Message-ID: <3764@umbc3.UMBC.EDU> Date: 16 Aug 90 20:57:51 GMT References: <1990Aug16.194644.14376@athena.mit.edu> Sender: newspost@umbc3.UMBC.EDU Reply-To: rouben@math13.math.umbc.edu.UUCP (Rouben Rostamian) Organization: Mathematics Department University of Maryland, Baltimore County Lines: 22 In article <1990Aug16.194644.14376@athena.mit.edu> ramon@skye.mit.edu (Ramon F Herrera) writes: | |I have a question for those {sed, grep, awk, tr} wizards out there. |I'd like to change all the occurrences in a file of a line like this: | |#include "dira\dirb\incl.h" | |to | |#include "dira/dirb/incl.h" | |but only for the lines that begin with "#include". | sed outfile -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. rostamian@umbc3.umbc.edu