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
simple math programming question
Oracle Packages
Disable IPv6 Exchange 2010
Cannot install programs as Administrator in Windows 7
Check to see if a table has a certain value, MS Access 2003
How do I clear memory on an HP LaserJet M2727nf
Configuring Exchange Mail on Ipad
Compare 2 separate databases
Editing the Windows Message "Your Account has Expired. Please contact your system administrator" for Windows XP Professional
I/O error reported on file system /oracle/P1U aix hdisk path vio