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
microsoft exchange server 2010
Blackberry browser 400 error - socketexception Connection reset
Is there a better docmd.sendobject method to send query results?
Request for the permission of type 'System.Net.Mail.SmtpPermi
ssion, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089' failed
Google Maps , ahhhh help pls!
Perl Iteration issue
extending jQuery autocomplete plugin functionality
Display logon message to new users at first logon.
How do I read Metastock data using C#?
How do I assign a preview image to the TSavePictureDialog