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
Disable Calendar Auto Accept request for outlook 2007
SQL 2005 log shipping vs replication question.
Insert CheckBoxList values
Exchange 2010 DAG becomes unavailable on second site
Binary data
unable to enable Archive Mailbox in Exchange 2010
Changing Default Web Site Properties
Exchange 2010 Trans from Ex 2003
MaxConnections parameter in websphere plugin
Multi-Site, single IP and DNS records