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...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.