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
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
Problems installing the AjaxControlTooKit.dll
Readystate in IE in VBA program
install problems with Framework .net 3.5 in Windows Server 2008 SP2 x86
MySQL IFNULL() selection
dynamic array as application variable?
Underlining text?
FTP - without log in
verifying port forwarding for your router failed
Java Scripted Roll-over Sound Files do not work in Google Chrome