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
Login to SSRS as andmistrator rather than anonymous user.
Navigate to the page of a specific item on a gridview
writing lines to htaccess file
In vb.net 2008 I need to evluate two columns in ms access to determine if a duplicate field exists
Dialog.ModalityType.APPLIC
ATION_MODA
L
Inserting data into a varbinary(max) field
How to configure email for authenticated users + some domains
A Perl Script to get windows server information
PHP - session variables lost between subfolders
The marquee progressbar hangs as the next line of the code executes