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
ipconfig shows lots of "tunnel adapters", what are they?
Where is resistance, force arm, and fulcrum in a Wheelbarrow?
Cisco ASA CSC setup
Should 3rd party drivers start in safe mode?
Hardware Firewall Configuration for Direct Access ( Teredo Tunneling)
Network issue.
Need to monitor specific events in SCOM 2007 R2
Access 2010 - packaging a database for distribution
Backup Exec 12
on a web application connecting to oracle. Finding a user session from their computer to oracle