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
Should you dismount exchange database before exhange updates?
how can i find all ILO boards on a network
asp.net mssql I have a need to update records where the record column needs modifing in orde to match the Id value
Lightweight network management for mobile workforce
Asterisk - How to detect / trigger using Asterisk Manager API
Network issue.
T-SQL Update Ordering by IDs based on a random number column
How to enable error reporting in event viewer for IE 8
Changing instance of SQL installation - need to reconnect BackupExec 12d
Roaming Profiles in Windows 7 Pro and SBS 2008