10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Pros,
I'm writing a script to modify listener.ora file on multiple hosts. When I ssh to any server from a central server in our environment we are presented with menu to select the instance. I need to set my environment to listener which could be different number on every instance. How can I... (5 Replies)
Discussion started by: humble_learner
5 Replies
2. Shell Programming and Scripting
I'm using sed to switch integers (one or more digits) to the other side of the ':' colon. For example: "47593:23421" would then be "23421:47593". The way it functions right now, it is messing my settings file to use with gnuplot. The current command is:
sed 's/\(*\):\(*\)/\2:\1/' out3 >... (3 Replies)
Discussion started by: D2K
3 Replies
3. Shell Programming and Scripting
I have a text file containing some notes and I want to limit the lines to 75 characters.
Tried using fold, however fold will cut words.
Need something in bash, sed or awk to do this. Find the blank space less than 75 ant cut from there (10 Replies)
Discussion started by: kristinu
10 Replies
4. Infrastructure Monitoring
Hi all,
I have a snmpd.conf file as below. in "SECTION: Trap Destinations" line I want to add "trap2dest <IP>:162 <com_str>" on a new line. For this I wrote following code
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp;
ssize_t read_char_count = 0;
... (2 Replies)
Discussion started by: zing_foru
2 Replies
5. Shell Programming and Scripting
Hi,
I want to convert a file that looks like this
>joe
XXXXXXXXXXXXXXXXXXX
>man
BBBBBBBBBBBBBBBBBBBBBSSSSSSSS
to something that looks like this (where the spacing is tab seperated)
joe XXXXXXXXXXXXXXXXXXX
man BBBBBBBBBBBBBBBBBBBBBSSSSSSSS
I am able to do the reverse but the other... (3 Replies)
Discussion started by: kylle345
3 Replies
6. Shell Programming and Scripting
Hi,
I am new to shell programming, and want to know is it possible to change the contents of file using script?
for example, if want to search 2 words and want to replace these words with 2 new words.
Regards,
Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies
7. Shell Programming and Scripting
Hello,
I have lots of xml files in the same format and I need to modify a xml tag in these files.
i loop over the files and apply sed to the files to make the modification but CPU goes to %100 while doing this. I think I'm doing something wrong. Here is my onliner:
for f in $( find . -name... (1 Reply)
Discussion started by: xyzt
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
i have created a simple .ksh file in the following manner
cat <<EOF >mfile
#!/bin/ksh
echo "hello world"
EOF
I have 2 questions
1. now i would like to add a second line after the first echo command
e.g. echo "this is line 2"
how can i do that ?
2. I would then like... (1 Reply)
Discussion started by: corbusier
1 Replies
9. Shell Programming and Scripting
hi ,
I have a javascript file like this:
function fnValidateId(){
var array_id = new Array("444","7888","6633","555","146562","3333","33332")
var tmp_id = document.form1.id.value;
var num=0;
while(1)
{
if(tmp_id ==... (9 Replies)
Discussion started by: Sreejith_VK
9 Replies
10. Shell Programming and Scripting
Hi,
I have a file which has data kind of like this.
Apr 13 08:20:38 uslis10a sendmail: m3DDKSx3006432: usliss26.ca.com
Apr 13 08:20:38 uslis10b sendmail: m3DDKSoK006433: usliss26.ca.com
Apr 13 08:20:38 uslis10b sendmail: m3DDKcSo006442: usliss26.ca.com
Apr 13 08:20:38 uslis10c... (2 Replies)
Discussion started by: eamani_sun
2 Replies