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
Installing SSL certifcate on exchange 2010
How do I delete a file from a folder (uploads directory) when I delete its reference in the database?
SQL injection problem on several pages. Any server side solution to this
flash drive manufacurer
Modify desktop icon size via registry in Server 2008
The session setup from computer 'PcName' failed because the security database does not contain a trust account 'PcName$' referenced by the specified computer.
Teaching iPhone app creation...Any advice?
problems with specific user in exchange 2003 environment
Java synchronized Thread issue
Does ADO.Net provides any standard processo to swith to/from connected to disconnected datasource?