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
Additional Domian Controler having windows 2008
Oracle Fail Safe Setup
How to alter web page so Google Chrome will clear old data?
vbscript exit if file exists
SQL 2005 on a windows 2003 cluster , how to back up
Resize a live OS partition whilst running! - Windows 2008
Network Installation/Setup
Cannot Access Drive
Documentation on SAMBA and Active Directory Integration
Invalid length passed to SUBSTRING Function