Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

update a file, with a new vesion number

Posted on 2011-03-08
2
Medium Priority
?
276 Views
Last Modified: 2012-05-11
hello
i need to change /export/oracle/oratab

the file contains:
DATABASE:/export/oracle/product/11.2.0.1:N

So I need to search in the file for in the case DATABASE,, and change the version number from 11.2.0.1 to 11.2.0.2

I have a complele brain freeze a mo on this...

thanks in advance
0
Comment
Question by:radical_mit
2 Comments
 
LVL 3

Accepted Solution

by:
nickswanjan earned 2000 total points
ID: 35068750
Here you go, and of course make sure you have a backup of the file in case you need to go back.

sed -i 's/DATABASE:\/export\/oracle\/product\/11.2.0.1:N/DATABASE:\/export\/oracle\/product\/11.2.0.2:N/' /export/oracle/oratab
0
 

Author Closing Comment

by:radical_mit
ID: 35068797
Thanks,
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
Utilizing an array to gracefully append to a list of EmailAddresses
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question