Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by QueenAnne

  1. QueenAnne

    how to find and replace (sub) a pattern match in multiple files?

    thanks all, i'll give these additional tips a try.
  2. QueenAnne

    how to find and replace (sub) a pattern match in multiple files?

    ok, Thank you CaKiwi. I found a way to do this using sed and it works for the most part. The only problem I have now is that sed is matching too much. for FILE in *java do cat $FILE sed 's/devPassword/prodPassword/' > tmpFile cp tmpFile $FILE done rm tmpFile this will match devPassword...
  3. QueenAnne

    how to find and replace (sub) a pattern match in multiple files?

    I need to change a pattern match on multiple lines in multiple files. How do I do this? Say for example: Files a.java, b.java, c.java... have hard coded passwords that need to be changed and the password could be on multiple lines not within a set column. Thanks very much for any assistance.

Part and Inventory Search

Back
Top