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
How Do I run a specific fix and test in ISINTEG
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
Multiple Stored Procedures in a single transaction
Cisco 2950 Vlan for Voice
Deploy application using GPO win 2008 R2
Virtual Disk 0 degraded Perc 5i integrated
PHP error reporting
net share system error 5 acces denied
How to notify the moderator of new posts?
Can't obtain cell values from Selected Row of GridView programmatically