Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!daemon From: ramon@skye.mit.edu (Ramon F Herrera) Newsgroups: comp.unix.questions Subject: Changing back slashes to forward slashes Keywords: tr, sed, PC, port Message-ID: <1990Aug16.194644.14376@athena.mit.edu> Date: 16 Aug 90 19:46:44 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: Massachusetts Institute of Technology, Cambridge Lines: 24 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". As you may have guessed, I am porting a PC-DOS program to Unix. thanks, Ramon -- Ramon F. Herrera Research Laboratory of Electronics Massachusetts Institute of Technology ramon@iona.mit.edu