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
XY Chart Label feature
Intel Sata RAID controller on RHEL 4 problem
OCS Edge Server R2 2007
Backup on Hyper-V Cluster
Reverse DNS does not match SMTP Banner
Javascript to get <TD> inner text in MSIE, FF and Chrome
Pass recordset from local sql server to remote sql server using access adp
Intermittent internet connectivity for PCs in small remote office
Net Use returns "System error 64 has occurred. The specified network name is no longer available."
Append a query string to destination URL after redirect?