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
Does OpenOffice allow Windows 7 preview pane to preview .doc and .xls files?
Validate month and year fields based on current date
With regards to correlated subqueries does anybody know what the logical query processing order?
Strange DNS resolution
How can I reference information from one sheet to another by values selected in a drop down menu
Use .NET or SSIS to download Exhange email and process attachments
Create linked server from MS Sql to oracle server
Passing combobox var to loaded swf as3
Cannot RDP to W2008R2 Server 'Computer Name' but can to its IP Address
Exchange Restarts Unknown reason