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
how to load ipt_REDIRECT.ko
What is a strong name?
Printer Migration from Windows 2003 to Windows 2008 R2
Enterprise Network System File Check
some emails arrive on blackberry but not in outlook
VC++ hiding console
vbscript exit if file exists
Cannot boot into Windows 7 partition (Blinking cursor) after using Acronis Disk Director resize
SQL UPDATE syntax
MSG 3930 error in sqlserver2008