Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.shell Subject: Re: Breaking large file into pieces Message-ID: <23529:Sep1122:52:3790@kramden.acf.nyu.edu> Date: 11 Sep 90 22:52:37 GMT References: <9466@jpl-devvax.JPL.NASA.GOV> <22842:Sep1121:10:3390@kramden.acf.nyu.edu> <9469@jpl-devvax.JPL.NASA.GOV> Organization: IR Lines: 18 In article <9469@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: > In article <22842:Sep1121:10:3390@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > : In article <9466@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: > : > echo "$line" > : C'mon, Larry. You know that should be echo -n "$line$n" where $n has > : been initialized to a newline. Or echo -n "$line"; echo. > Don't teach your grandmother to suck eggs. Let's see you come up with > a solution that also works on all the \c machines. > Apart from "Install SVR4". :-) Hmph. Just preprocess the file with sed 's-\\-\\\\-g'. Or, if you really like backslashes, sed s/\\\\/\\\\\\\\\/g. Or, if you're a masochist, sed s/\\(\\\\\\)/\\\\\\1/g? sh -c "sed s/\\\\(\\\\\\\\\\\\)/\\\\\\\\\\\\1/g"? There, that's four solutions, apart from ``install BSD''. :-) Oh, sorry, sed is heresy for a Perl lord, isn't it? :-) ---Dan