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
Communigate Pro bounce back "The message was not delivered because the return address was refused"
Latest Vsphere client
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Drupal - changing css for only one View
Run the first php script in background - When done - run the next script ...
Error running scheduled task in Windows Server 2008
SQL reporting services error in sharepoint integrated mode. Shared data source not valid
Delete blank line from textarea
Identify available memory for an x86 application in x64 Windows
Replace ButtonClickEvent with RadWindow Close (ASP.NET, C#, Telerik RadControls)