Re: Help with a Unix script for...

From: j f chaos (jfchaos@JUNO.COM)
Date: 10/29/97

On Tue, 28 Oct 1997 08:15:03 -0800 SJM <meadsh@ECE.ORST.EDU> writes:
>Hello, I have a file that has over 6500 lines of code I want to use
>almost every line has a '+' in front of it.  The code is from a patch
>file that I couldn't get to patch so I am doing it manually.  Can
>help me with a simple unix script that will filter out these '+'s?
>Maybe to read in the first character of every line and if it is a '+'
>then delete it, otherwise move on to the next line.  Or does anyone
>an easier way?
  I don't see why you'd want to remove the +'s if it's from a patch file,
you need to be able to tell which lines to replace and which ones are the
reference lines, the lines that tell you about where to place the new

Lord Chaos

"I have no master. I am Chaos."

"CyberMUD IMP"

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST