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
Problem with EFS Recovery
Windows 2008 DC and IP Default Gateway settings
Windows Server 2008 R2: missing start menu of installed applications
Ethernet crossover cable connect
get 550 5.7.1. Unable to relay for specific domains....
How to Stop Procedure Running after Message Box Displayed
Need to uninstall winzip using group policy
Exchange 2010 RPC error
multiple users having outlook and phones checking one IMAP mailbox, is it a problem?
Removing a tidserv backdoor rootkit on XP