Finding the odd one out!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Finding the odd one out!
# 1  
Old 04-27-2010
Finding the odd one out!

Hi guys, I wondered if someone would be able to help me.

I have a number of files which all have entries in them looking something like;

Quote:
100,101,102,103...etc
And I'm looking for a way where by I can compare a number of these files and identify the odd numbers in the sequence.

So for example if I had to files looking like;

Quote:
100,101,102
Quote:
100,101,102,103
It would show 103 as the odd one out..

Any ideas would be great!

Thanks, Jamie
JayC89
# 2  
Old 04-27-2010
You don't mean odd in the math sense, do you.

How many files are to be compared - do you want to find singular values in 10 files at once, or compare two files?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Cybersecurity

Odd behavior from passwd.

Hi Folks, Before I go off and start checking I'm just wondering if anyone has seen this behaviour before. # passwd e825390 Changing password for user e825390. New password: Retype new password: Retype new password: passwd: all authentication tokens updated successfully. As you can... (2 Replies)
Discussion started by: gull04
2 Replies

2. Shell Programming and Scripting

How to shuffle odd and even columns?

Is there any way to place each even column name infront of its odd column using awk or others? input Ab name MGH26 B04 MGH26 B05 output name_Ab B04_MGH26 B05_MGH26 (4 Replies)
Discussion started by: quincyjones
4 Replies

3. Shell Programming and Scripting

Odd error on grep

GNU/Linux 2.6.18-308.24.1.el5 I am debugging an existing script. I am getting an error Script_Error at line Program Completed... but, Line 202 is grep Script_Error $log_file ############################################################################## #### S C R I P T ... (2 Replies)
Discussion started by: Daniel Gate
2 Replies

4. Solaris

Odd vi error

Hello, I have a weird think going on, on one of my servers. vi filename "/var/tmp" No such file or directory What going on here? (4 Replies)
Discussion started by: bitlord
4 Replies

5. Shell Programming and Scripting

Odd and even file names

Hello, I want to sort/identify 600 files according to odd or even numbers in the files names. How can I do this? The goal is to perform different ImageMagick operations based on even or odd numbers in the file names. The file names have this pattern: bdf0001.tif, bdf0044.tif and bdf0136.tif ... (4 Replies)
Discussion started by: garganmou
4 Replies

6. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies

7. UNIX for Dummies Questions & Answers

even odd script

I need a unix script that check for even or odd. EXAMPLE:::: please enter the number to check: 12 the output: This is an even number it has to have prompts. (2 Replies)
Discussion started by: snyper2k2
2 Replies

8. UNIX for Dummies Questions & Answers

Odd file with no name

OS: Solaris 2.6 File with no name created Mar of 2000 - ls (with or without options) shows the file but no name associated with it. Example: ls -ltca -rw-r--r-- 1 root other 9721 Apr 16 2003 printcap -rw-r--r-- 1 root other 267 Apr 16 2003 -rw-r--r-- 1 root other 258 Apr 16... (3 Replies)
Discussion started by: RTM
3 Replies
Login or Register to Ask a Question