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 register nameserver
Colour highlighted search in vi
Auto fill user name in "Login" field
SQL 2005 on a windows 2003 cluster , how to back up
added shortcut to Public Desktop but some users not getting it - Win 2008 R2 Terminal Server
Any best tool to copy users profile during server/domain migration ?
'SettingsSingleFileGenerat
or' 'ResXFileCodeGenerator' problem
Using 3rd Party SSL to Setup Exhange 2007, Outlook 2007, Server 2003 with Terminal Services
CA etrust Threat Management
Update Panel not loading DropDown