Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!ll-xn!rkc From: rkc@XN.LL.MIT.EDU (rkc) Newsgroups: comp.unix.questions Subject: sed ? question Message-ID: <1415@xn.LL.MIT.EDU> Date: 25 May 89 20:57:12 GMT Organization: MIT Lincoln Laboratory, Lexington, MA Lines: 12 I have an application where I want to run a file through cpp and then strip that file of all the nasties that cpp generates, namely: 1. Lines beginning "# line number info " and 2. The many blank lines. It seems to me that sed should be able to do this for me--but I'm not sure how to go about it. I can get sed to do #1 by using the script: sed /^#/,/\n/d filename but I can't figure out how to do #2. Surely there is a sed guru out there who can help me...(Add other pitiful cries for help.) Please e-mail responses, as I do not read this newsgroup. Thanks, -Rob