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
DNS Search List appending to all nebios / dns names
Urgent: How to locate the current in use ID file in Lutus Notes 7
Can't install wifi printer MX870
difference between AD integrated dns server and dns server
Convert 16bpp bitmap to 32bpp or to JPEG on Windows Mobile 5.0 onwards
sql query help.
Reducing bandwidth consumption between domain controllors at multiple sites
VBA Syntax Help
ssh 1.99 vs 2.0
Windows 2008 R2 x64 Error Id 2092 and Id 4013