10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I'm hoping one of you helpful lot could come up with a way I can do the below. I've been trying to think how is best but have struggled to come up with a way.
I have a list of IP addresses in the below format
1.1.1.1
102.1.2.3
102.102.1.10
102.102.102.1
I need to compare... (4 Replies)
Discussion started by: mutley2202
4 Replies
2. Shell Programming and Scripting
Hi
I have a file containing server names and i can ssh to all these servers without password.
Could any body suggest me how to list out IP address of all the servers?
Now i am manually doing this, like ssh to each server and run "ifcong -a" command and copy the ipaddress to a excel sheet.... (5 Replies)
Discussion started by: kumar85shiv
5 Replies
3. Shell Programming and Scripting
Hi,
I am trying to compare IP address of a server using nslookup with IP address in a file (serverlist). And if there is a difference in IP, it should send an email.
But there is some error in the pgm... Please help...
#!/usr/bin/ksh
for server in `cat serverlist`
do
old_ip=`cat... (12 Replies)
Discussion started by: vkk
12 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
I'm sure this question has been asked many times but I can't find any posts with information.
How can I check the differences between say lines 20 - 200 in file1 and lines 420 - 600 in file2?
Thanks in advance for any help!
js (2 Replies)
Discussion started by: js8765
2 Replies
5. Shell Programming and Scripting
Trying to do a ksh script that needs to list all ip address between ip address a and b ..
ie.
Ip address A=192.168.1.200
Ip address B=192.168.2.15
So the subnet changes from 1 to 2 but I want to list all possible ip addresses between the 2..
Which would be:
192.168.1.200... (4 Replies)
Discussion started by: frustrated1
4 Replies
6. UNIX for Advanced & Expert Users
hi there,
i have to read lines from the file, where the line is just above the pattern am looking for
typically this looks like this
<time-stamp>|-----
<pattern am searching >......
<time-stamp>|.....
<some garbage >
....
the log file is big
wc -l ~/log/ompe.log.20081203... (8 Replies)
Discussion started by: kiranreddy1215
8 Replies
7. Shell Programming and Scripting
Hi
I need to write a bash shell script. I have two separate text files. One file contains a list of MAC addresses taken from a network scan, the other contains a list of MAC addresses for our currently-managed devices. How can I compare these two files, and output a list of addresses that have... (6 Replies)
Discussion started by: borderblaster
6 Replies
8. UNIX for Dummies Questions & Answers
Hello,
Here is my problem. there are two files.
first.txt <<< contains email address
======
abc@mail.com
abd@mail.com
abe@mail.com
second.txt <<< contains webpage links
========
http//www.test.com/abc/index.html
http://www.test.com/abd/index.html
http://www.test.com/abe/index.html... (2 Replies)
Discussion started by: paulds
2 Replies
9. UNIX for Dummies Questions & Answers
Has anyone had an issue where:
If I telnet into a unix machine on my network, from within my natted address,
there is no speed issue.
When I telnet to the same machine using the static address, it is very very
slow.
This SCO 5.06. There is no nameserver running.
Please help. I have... (3 Replies)
Discussion started by: gseyforth
3 Replies
10. Shell Programming and Scripting
hello,
i need a searching algorithm in unix. since my input file is very bulky, so need a real fast searching algorithm, to match words. i am already using grep. (3 Replies)
Discussion started by: rochitsharma
3 Replies