Solved

update a file, with a new vesion number

Posted on 2011-03-08
2
262 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 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
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 this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now