Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!sci.kun.nl!atcmpe!ronald From: ronald@atcmp.nl (Ronald Pikkert) Newsgroups: comp.unix.questions Subject: Re: Changing back slashes to forward slashes Message-ID: <656@atcmpe.atcmp.nl> Date: 17 Aug 90 08:28:51 GMT References: <1990Aug16.194644.14376@athena.mit.edu> Organization: AT Computing, Nijmegen, The Netherlands Lines: 29 From article <1990Aug16.194644.14376@athena.mit.edu>, by ramon@skye.mit.edu (Ramon F Herrera): <> <> I have a question for those {sed, grep, awk, tr} wizards out there. <> #include "dira\dirb\incl.h" <> to <> #include "dira/dirb/incl.h" <> For a real edit-job use a real editor :-) script ------ ed - $1 <<@ g/^#include/s/\\\/\\//g w @ Invoke this script as: "script prog.c" and it will do the job. You can run it without having to worry about creating temporary files, wich you would need with any of the filters you mentioned. Have fun, - Ronald Pikkert E-mail: ronald@atcmp.nl @ AT Computing b.v. Tel: 080 - 566880 Toernooiveld 6525 ED Nijmegen