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
run excel and run the enable auto refresh
How do I add buttons on a PDF form to add/remove rows of data?
Blackberry Users can receive but not send
HOW TO DEACTIVATE ALL COMMANDS, TEXTBOXES AND DROPDOWN BOXES ONNA FORM?
How can I connect printer to a computer using another computer.
Does this HP ML370 G3 server support 64-bit OS?
extracting BLOBs
USB Video Card - 32 bit on 64 bit machine?
WHat is the recommended size for the swapfile for my SQL Server ?
Windows Server 2008 R2 iSCSI Initiator and HP D2D CHAP issue