10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi all, posting my first time, hope not breaking posting rules with it, if yes, let me know.
I'm trying to build a script to check a file in an sftp server through a remote server.
The intention is to check the file in a sftp host, and if the file is found or not, it should send an email.... (4 Replies)
Discussion started by: MrShinyPants
4 Replies
2. Shell Programming and Scripting
Hi,
There are duplicate entries in file, but uniq will not see because first field is different. How will I catch all lines, which are having duplicate IPs ?
bash-2.05# cat db.file | grep 172.30.133.11
dsrq-ctrl1-prod A 172.30.133.11
e911q-db1-nxge0 A 172.30.133.11... (4 Replies)
Discussion started by: solaris_1977
4 Replies
3. Shell Programming and Scripting
Hello experts,
I have a requirement where I have to implement two checks on a csv file:
1. Check to see if the value in first column is duplicate, if any value is duplicate script should exit.
2. Check to verify if the value at second column is between "yes" or "no", if it is anything else... (4 Replies)
Discussion started by: avikaljain
4 Replies
4. Shell Programming and Scripting
Hi
I have a file
1 xyz 456
1 xyz 456
1 xyz 456
2 abc 8459
3 gfd 657
4 ghf 658
4 ghf 658
I want the output
1 xyz 456
2 abc 8459
3 gfd 657
4 ghf 658 (3 Replies)
Discussion started by: manigrover
3 Replies
5. Shell Programming and Scripting
Hi,
I have a very big (with around 1 million entries) txt file with IPv4 addresses in the standard format, i.e. a.b.c.d
The file looks like
10.1.1.1
10.1.1.1
10.1.1.1
10.1.2.4
10.1.2.4
12.1.5.6
.
.
.
.
and so on....
There are duplicate/multiple entries for some IP... (3 Replies)
Discussion started by: sajal.bhatia
3 Replies
6. Shell Programming and Scripting
Hi,
My script needs to check whether the remote host is up or not.
If it is up i need to start few servers in that host or else just a notification should be sent that the remote host is down?
Could someone help me out in this?
Regards
Arun (4 Replies)
Discussion started by: arunkumarmc
4 Replies
7. Shell Programming and Scripting
Hi,
how to check when was the linux upgrade has been done to this host.
below command show the RHEL version.
cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
i want to know when it was upgraded..
is there any command available for that ? or anywhere we... (3 Replies)
Discussion started by: mail2sant
3 Replies
8. Shell Programming and Scripting
Hi,
I forgot how to start a new thread. :(
Can somebody please guide me?
I have one problem related to /.rhosts file.
According to my understanding, /.rhosts file is used for "rsh". What will happen if I have duplicate entries in this file?
e.g> my .rhosts file looks like
wcars42g... (2 Replies)
Discussion started by: akash_mahakode
2 Replies
9. Shell Programming and Scripting
Hi All,
I have one problem related to /.rhosts file.
According to my understanding, /.rhosts file is used for "rsh". What will happen if I have duplicate entries in this file?
e.g> my .rhosts file looks like
Code:
wcars42g
wcars89j
wcars42g
wcars42b
wcars42b
Will duplicate entries... (1 Reply)
Discussion started by: akash_mahakode
1 Replies
10. Shell Programming and Scripting
I have a file which consists of 1000 entries. Out of 1000 entries i have 500 Duplicate Entires. I want to remove the first Duplicate Entry (i,e entire Line) in the File.
The example of the File is shown below:
8244100010143276|MARISOL CARO||MORALES|HSD768|CARR 430 KM 1.7 ... (1 Reply)
Discussion started by: ravi_rn
1 Replies