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
Event ID 12293 Security -SPP Publishing key management service Error#0x8007232D
Certain Email messages are shown in OWA but not in Outlook 2010
Server Error in '/Reports' Application in SQL Server Reporting Services
Crystal cross-tab page numbering
Outlook Contact Consolidation
How to enable workstation users to install software through GPO using SBS 2008
SBS 2003 / Error: too many hops (delivery attempts: 0)
childWindow
Setting Compatibility Mode in IE8 using JavaScript
How to handle button click without reloading page first