in reply to Re: if elsif elsif prints all three.
in thread if elsif elsif prints all three.

That is what I want. I want it to leave the file alone. But, it removes the line. leaving bgs) ;; on the next line. then adds the $bgs here document also.