Search Results

Search: Posts Made By: gubbu
4,469
Posted By gubbu
Awesome...you rock!
Awesome...you rock!
4,469
Posted By gubbu
Hostname lookup and create text file
I have a list of hostnames in a txt file . I need to do nslookup or other command on linux and get the ip address and if you dont find an ip address then put 0.0.0.0 instead in the output text file...
1,922
Posted By gubbu
Ssh to 100s of hosts with password in a shell script or text file
I have about 500 hosts where I need to ssh by sending the password on the command line or in a text file in a clear text . However I am not able to download "sshpass" or other tools .

Any other...
1,083
Posted By gubbu
Search and replace in shell
I have a server.xml in about 50 instances of JBOSS servers which has
the following line
<Engine defaultHost="localhost" name="jboss.web">

I need to append something into this line based on the...
13,494
Posted By gubbu
Search text and append using SED?
I have file .
cat hello.txt

Hello World


I would like to append a string "Today " so the output is
cat hello.txt

Hello World Today


I dont know which line number does the "Hello...
3,304
Posted By gubbu
extract fields from a downloaded html file
I have around 100 html files and in each html file I have 5-6 such paragraphs of a company and I need to extract the Name of the company from either the one after "title" or "/company" and then the...
2,639
Posted By gubbu
extract part of hostname in a script
I need to automate something as part of post processing in a script . Each project is identified by a 3 letter string which is part of hostname and based on hostname I need to copy a particular file...
4,668
Posted By gubbu
Log archive script
I need a log archival script which will delete files older than 3 days in a given JBOSS log directory which has files as follows
server.log.2011-08-25
server.log.2011-08-26
server.log.2011-08-27...
1,982
Posted By gubbu
The script below is actually in /etc/init.d and...
The script below is actually in /etc/init.d and there are symlinks to /etc/rc.xd directories and I have put the links in all the rc directories.

The problem I am having is the K script is not...
1,982
Posted By gubbu
rc.d script to stop not workign
I have a simple script that I have put in all the rc.d directories from 1-6 and have named it K20blah and S20blah .I am on red hat linux and I see that when i do reboot the S20blah is ignored but the...
33,854
Posted By gubbu
find large files in root filesystem and exclude others
I am wondering if there is a way to search for top 10 files in size in root filesystem but exclude all other mounts including nfs mounts .
For example excluded

/var
/boot
/app
/app1
/u01/
19,795
Posted By gubbu
/etc/sudoers for allowing oracle user to /var/log/messages
So I want the DBA to access /var/log/messages and so I logged in as root and then edited the sudoers file as follows

"oracle ALL= (root) /bin/view, /var/log/messages"

However when I login...
Forum: IP Networking 07-19-2011
2,007
Posted By gubbu
simple linux networking question
I have 2 linux hosts running oracle RAC DB with multiple ethernet interfaces .

Host 1

netstat -tln |grep 6000
Proto Recv-Q Send-Q Local Address Foreign Address ...
12,043
Posted By gubbu
How to use SED or AWK to search and replace an exact string
I have a file

DS1
DDS
DS

I want to replace only "DS" to "DSmail.blah.com" in a lot of files. I tried

sed 's/DS/DSmail.blah.com' but it changes all the lines .

thanks in advance
2,831
Posted By gubbu
Calculate response time from log
I have a running log file (jboss_server.log) which rotates at midnight . I need to constantly check and calculate the time for each thread and alert if it doesnt complete within 60 minute. For...
1,254
Posted By gubbu
Script to find files and delete it by comparing
I have a directory where lot of "gzip" files are dropped in every 5 minutes. There is an application which will process these gzip and move it to another directory but will leave a gzip.out file with...
11,243
Posted By gubbu
Thanks both work ..
Thanks both work ..
11,243
Posted By gubbu
Shell script for log archiving
I have an nfs mount /logfile/project mounted on several of my application server machines. I have 5 jvms running on each machine and I have several machines. the jvms logs are created and rotated...
3,627
Posted By gubbu
Comment a line with SED
I have around 25 hosts and each hosts has 4 instance of jboss and 4 different ip attached to it . I need to make some changes to the startup scripts. Any tips appreciated. I have total of 100...
10,899
Posted By gubbu
Display output as columns using grep/awk/sed
I have several files with say something like
cat
sparrow

I can grep for "cat" and "sparrow" and usually the output is one below the other

cat
sparrow

How can I view these as columns say...
4,043
Posted By gubbu
Awesome..thanks
Awesome..thanks
4,043
Posted By gubbu
Calculate processing time
I have a log file which has a lot of output but I am interested in the following

Processed records: 34749; Processed files: 67445
Job run run at Thu May 6 03:00:01 PDT 2010
Job finished at Thu...
3,937
Posted By gubbu
Calculate Date from shell script
I have a txt file which now has the following output

Sat Mar 6 04:00:01
Sat Mar 6 04:02:09
processing 585
Sat Mar 6 17:00:01
Sat Mar 6 17:00:58
processing 109
Sun Mar 7 04:00:01
Sun Mar 7...
6,907
Posted By gubbu
sed to delete lines from a file by using wildcard
I have a text file with tons of data and I want to remove all lines which are have "240" regardless of ABC or BCD and shouldnt delete anything else

ABC_10_00024045.zip blah blah...
4,385
Posted By gubbu
Thanks all .
Thanks all .
Showing results 1 to 25 of 45

 
All times are GMT -4. The time now is 07:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy