10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to write a script or command to add/remove a section from listener.ora file
in the following example I would like:
1. to remove sid_alias2 sections
2. to add a new alias sections called sid_alias4, it can be placed after sid_alias3 sections
$ cat listener.ora
... (18 Replies)
Discussion started by: ynixon
18 Replies
2. Shell Programming and Scripting
I have a configuration file that contains hundreds of these chunks. Each "chunk" is the section that begins with "define service {" and ends with "}".
define service {
check_command check_proc!java
hostgroup_name
service_description ... (5 Replies)
Discussion started by: SkySmart
5 Replies
3. Programming
Hi All,
I have a file with the data 10;20;30;40;50;60;70;80;123;145;156;345. the output i want is the first fourth sixth elements and everything from there on. How do i achieve this. (1 Reply)
Discussion started by: raghu_shekar
1 Replies
4. Shell Programming and Scripting
I have a file like this
%( PHASES
P
%)
%( SOURCES
(10,0.0)
(13,0.0)
(16,0.0)
(19,0.0)
(22,0.0)
(25,0.0)
(28,0.0)
(31,0.0)
(34,0.0)
(37,0.0)
(40,0.0) (1 Reply)
Discussion started by: kristinu
1 Replies
5. Shell Programming and Scripting
I have an awk script like below
function abs(val) {
return val > 0 ? val : -val
}
# 1. Main input loop, executed for each line of input
BEGIN { RS = ORS = ">" }
{ if ( NF > 2 )
{
if ( abs( $1 - $(NF-2) ) < 40 ) { print }
}
}
The input file is something like... (2 Replies)
Discussion started by: kristinu
2 Replies
6. Shell Programming and Scripting
Hello..
I have a line in a file which I have to edit:
the line looks like:
<!]>
Sometimes, the section of the line can have only one entry for cn, or maybe more than 2 like below:
<!]>
I have a variable which has the following value:
CN="(cn=MNO)(cn=XYZ)"
I need to replace the part... (4 Replies)
Discussion started by: chiru_h
4 Replies
7. Shell Programming and Scripting
Here is a data file, which I believe is in YAML. I am trying to retrieve just the 'addon_domains" section, which doesnt seem to be as easy as I had originally thought. Any help on this would be greatly appreciated!! I have been trying to do this in awk and mostly bash scripting instead of perl... (3 Replies)
Discussion started by: Rhije
3 Replies
8. Shell Programming and Scripting
Greetings! I found this fourm via a google search on "sed expressions".
I have a file that contains notices and they are all the same length in lines. For example the file would contains 15 notices, each being 26 lines each. I need some way to eliminate notices that contain a "S" in a particular... (8 Replies)
Discussion started by: cals64
8 Replies
9. Shell Programming and Scripting
I have a file that I need to parse multiple sections from the file.
The file contains multiple lines that start with ST (Abunch of data)
Then the file contains multiple lines that start with SE (Abunch of data)
SE*30*0001
ST*810*0002
I need all of the lines between and including these.... (6 Replies)
Discussion started by: rgentis
6 Replies
10. UNIX for Advanced & Expert Users
I have a file that I need to parse multiple sections from the file.
The file contains multiple lines that start with ST (Abunch of data)
Then the file contains multiple lines that start with SE (Abunch of data)
SE*30*0001 ... (1 Reply)
Discussion started by: rgentis
1 Replies