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
Why does this xslt sort not work?
Public Desktop Icons not showing in RDP sessions
How do I ensure different backup jobs append to the same tape(s) in a media set through the week Backup Exec 2010?
How to close the controlsmenu after selecting the items from the combo box with out including any code behind.
Best AV for 2008 R2 64bit
how to recover the hdd image
Backup solution for remote worker
phpmailer problem after migrating from Windows WAMP to Ubuntu LAMP
DockForm.DCU not found?
how can i create window service in C# using InstallUtil.exe ??