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
Creating a Dynamic Form from SQL database tables in ColdFusion
Adding one cell to the bottom of a named range defined byan OFFSET
SQL*Loader - Trim Leading & Trailing Space for Columns with Spaces in Name
How do I add rows to a datagridview based upon a For Each statement in VS2008?
Exchange 2007 mail relay
Setting Folder Permission in Windows XP - VB Script
Exchange 2010 resource mailbox for meeting room
Insert Script from the command prompt
T SQL Query and Dates
Cisco ASA 8.3 RDP Configuration Syntax