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
802.1q trunk
How to repair a dell e171fpb monitor
Starting letters with XXX
Prevent form from submitting if certain words or domains entered, spam control
Exchange activesync from iphone not connecting to Exchange 2003 server via port 443
How to capture images using webcam in C#?
Subdatasheet behavior
Riverbed with Cisco GRE Tunnel
Windows Update site fails to load
MS SQL Server only using one core on a 4 core box