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
New ESXi install fails (PSOD)
Virtual to Physical using WinImage:V2P
Windows 7 - Windows could not be activated
find textbox and start div underneath it
MySQL data need to "replace" CRLF
JComboBox action commands
check constraint date ranges
Importing Calendar files into Excel (.ics > .xls)
OS X 10.6.4 and Flash Player Issues
CentOS 5.3: search keyword in array of logs: how?