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
How do I modify textboxes/labels in an asp:repeater footertemplate through javascript (client side)
explanation of httpcontext needed
VMware Vcenter server connection to iSCSI SAN network
OnTextChanged TextBox Issue
How Do I Deal with Null Values in SQL Pivot Queries
COMPAQ V6000 HP, WON'T BOOT WITH BATTERY INSERTED, DC BLUE LIGHT PULSES DIM
undeliverable SBS 2003 Alert message, but not really
Advice on upgrading a SBS 2003 R1 server
Migrating SharePoint to another server
Printers Having issue From EXCEL