in reply to grep question

I'm having problems with grep
And what kind of "problems" that might be?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: grep question
by wcj75019 (Acolyte) on Feb 21, 2008 at 16:16 UTC
    I'm reading in a list of files. I want to grep which files have the line with bgs in it. Replace that line with the new line which is the new way to start Best1. Many of them don't have the line. So, for the files that don't have it. I need to add it.