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
How do I TOTALLY Disable WMI Logging
Teaching iPhone app creation...Any advice?
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
How do I identify if I have RAID array setup?
detect startmenu sortcuts who's target no longer exists
Listen to calls on Asterisk
RPG III program will not execute inside a RPG IV program (error message: MCH3401)....
Particular calendar items will not sync from iPhone to Outlook via Exchange
How to retrieve and Entities Form or View Metadata
integrated wordpress into site. blog pic attachments not working.