Changing back slashes to forward slashes
Rouben Rostamian
rouben at math13.math.umbc.edu
Fri Aug 17 06:57:51 AEST 1990
In article <1990Aug16.194644.14376 at athena.mit.edu> ramon at 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 <infile -e '/\#include/s/\\/\//g' >outfile
--
Rouben Rostamian Telephone: (301) 455-2458
Department of Mathematics and Statistics e-mail:
University of Maryland Baltimore County rostamian at umbc.bitnet
Baltimore, MD 21228, U.S.A. rostamian at umbc3.umbc.edu
More information about the Comp.unix.questions
mailing list