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
Would you recommend Draytek Vigor 2820 for site-to-site VPN
ASP.NET Membership minRequiredNonalphanumeric
Characters
Problem
How to generate an HTML file if I've got the HTML body?
Wyse FTP Config
Copy Entire Row and Paste into a new Worksheet Excel VBA
Files scp'ed from Unix servers to Win XP (running WinSSHD V5 ) could not be deleted on the PC
Redundant .msi files created by Windows Installer.
Windows Small Business Server 2008 Console Updates
a tool to Trace route a packet over SMTP
Everything frozen in Google docs