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
C# delete empty rows in excel
Windows Time Issue for 2003 Server
How to archive IMAP mail in outlook?
Display a form within a Panel. How to hide caption bar?
COM security setting / edit limits
Accessing an FTP server internally that is on a different subnet.
System DSN doesn't show in Excel
Reading command line arguments in VB.Net
Find all records that don't exist n a table
Barracuda Load Balancer 340 - balances fine but real servers cannot connect to Interenet