The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-08-2007
Helmi Helmi is offline
Registered User
 

Join Date: Apr 2007
Posts: 15
Thanks for the replies.
Quote:
2) how am i going to seek for oracle sqlplus scripts which have the "myusername/mypasswd @myDB" in every sh scripts,perl etc in every user directories. And if it found it, it is enable to modified?

3) is there any example/testing sed scripts which i seem maybe would help for
the task?
matrixmadhan , supposed that, i found all the script using what you guys have told me, if there any help on how to edit the pattern that i found and apply it all to scripts e.g:
Code:
find . -name '*.*' -print | xargs grep -il 'searchpattern' | sed 's/oldsearchpattern/newsearchpattern/g' (i don't know if this is the correct term of using sed!)
to make it clear:
Code:
in /home/user/

a.sh
b.sh
c.sh
i found above 3 shell script contained the "user/passwd @DB", then
is there any example shell script/sed scripts that could alter or modified all three scripts where i just input the new "user/passwd @DB" when i running the example script.

sorry for much of request,

Regards,
Helmi
Reply With Quote