Microsoft
Software
Hardware
Network
Question : search and replace
I need a shell script for search and replace in folder. I want the shell script go to /opt/jboss and search for ejb and replace with servlet. I have command to search for a word but don't have command to search and replace.
find /opt/jboss -exec grep -ls ejb {} \;
Remember mine is solaris 10 OS on sparc box.
Thanks in advance
Answer : search and replace
Ah, there is a typo
find $StartPath -type f -exec grep 'ejb' -ls {} \; | while read FileName
should be
find $StartPath -type f -exec grep -ls 'ejb' {} \; | while read FileName
Random Solutions
about ORA-00904: "ZIP": invalid identifier
XP 10 inbound connection limit question
Why is access denied to 2008 sql server express database?
Developing an iPhone application -- requisites
error booting the ubuntu linux live cd
Conditional Formatting not printing
Can print but not scan on Brother MFC-7840W on a Mac / "Connection Error"
How to find the row count in an Oracle DataReader in ASP.NET?
Dell inspiron 1720 BCM2045 bluetooth driver for Windows XP Professional.
A Perl Date module problem