Sponsored Content
Full Discussion: Comparing data list...
Top Forums UNIX for Dummies Questions & Answers Comparing data list... Post 34646 by TioTony on Monday 3rd of March 2003 11:25:58 PM
Old 03-04-2003
Since you are only concerned if at least 1 file exists this may work for you:
Code:
mylist="janfile.tar jarfile.jar jan.rpt.Z" 
for i in $mylist
do
   if [ -e $i ]
   then
     echo found $i   #or e-mail and halt
     exit 0
   fi
done

The -e just checks to see if the file exists. If it does, then the expression is true and the echo is run.

added code tags for readability --oombera

Last edited by oombera; 02-18-2004 at 10:11 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Comparing a distinct value in 1 list with another list

Hi all, I need to compare the contents of 2 directories where the file contents are similar and take out the filenames whose contents does not exist within the 2 directories. Directory1 1 2 3 4 Directory2 54 55 56 57 Does anyone has a script which can do this? At the end of... (6 Replies)
Discussion started by: manualvin
6 Replies

2. Shell Programming and Scripting

Problem comparing 2 files with lot of data

Hello everyone, here's the scenario I have two files, each one has around 1,300,000 lines and each line has a column (phone numbers). I have to get the phones that are in file1 but not in file2. I can get these phones trough Oracle but my boss does not want that so he gave me the files with the... (4 Replies)
Discussion started by: rafisha
4 Replies

3. Shell Programming and Scripting

Comparing data in file with values in table

Hi, I want to calculate the number of pipe delimiters in a file for all lines seperately. For eg:i have a file Project.txt Mohit|chawla|123|678 File1|File2|345|767|678 And my file contains many lines like this it shd give me the output as 4 5 or give me the output for all the... (0 Replies)
Discussion started by: Mohit623
0 Replies

4. Shell Programming and Scripting

Comparing data inside file

Hi Everyone, I will try to explain my question please forgive my english here. I am looking for shell script or command that can compare data in the files. I have 50 files in one directory test1 test2 test3 ....so on. I want to compare data in each files with each other and output each... (4 Replies)
Discussion started by: email-lalit
4 Replies

5. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

6. Shell Programming and Scripting

Shell script for comparing data of tables

Hi, I have two databases with same tables on different servers.I need to check the data content in each table and if something is missing, should print that. I have a tool which takes the snapshot the table structure,index so on and compares with the other server tables snapshot. Now i need... (1 Reply)
Discussion started by: nessj
1 Replies

7. Shell Programming and Scripting

Comparing the data in a 2 files

Hi Friends, I have a file 1 CREATE MULTISET TABLE TEYT_Q9_T.TEST ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT, DEFAULT MERGEBLOCKRATIO ( XYZ DECIMAL(10,0), ABC VARCHAR(5) CHARACTER SET LATIN NOT CASESPECIFIC, PQR... (3 Replies)
Discussion started by: i150371485
3 Replies

8. UNIX for Dummies Questions & Answers

Comparing lines of data

Total UNIX Rookie, but I'm learning. I have columns of integer data separated by spaces, and I'm using a Mac terminal. What I want to do: 1. Compare "line 1 column 2" (x) to "line 2 column 2" (y); is y-x>=100? 2. If yes, display difference and y's line number 3. If no, increment x and y by... (9 Replies)
Discussion started by: markymarkg123
9 Replies

9. Shell Programming and Scripting

Comparing list of files

Hi All, I have a list of files and want to find the difference between each file if there is difference then i want the file name to be printed and log the duplicate files For example Size Filename 23 a1 23 a2 23 a3 45 a4 If i diff a1 and a2 and find... (3 Replies)
Discussion started by: wedng.bell
3 Replies

10. Shell Programming and Scripting

Comparing to 3 data

# cat list.txt server1 server2 server3 server4 # data to be compared of. #dns address 1.1.1.1 2.2.2.2 3.3.3.3 #for i in `cat list.txt` do grep dns $ i done (1 Reply)
Discussion started by: invinzin21
1 Replies
MAILMAN2LURKER(8)					      Administrative commands						 MAILMAN2LURKER(8)

NAME
mailman2lurker - Import mailman lists and their archives into a lurker database. SYNOPSIS
mailman2lurker -i|-p [options] DESCRIPTION
mailman2lurker has mainly two functions. First, it parses mailman's lists and creates a lurker configuration include out of them. Second, it imports archives from mailman lists into a lurker database. To build a new lurker database from mailmans archives, first run 'mailman2lurker -p'. Next you need to add 'include = /etc/lurker/lurker.conf.mailman' into /etc/lurker/lurker.conf.local. Finally import mailmans mboxes by running 'mailman2lurker -i'. If you want to add new lists to an already existing lurker configuration, run 'mailman2lurker -p -w newlists' and afterwards 'mailman2lurker -i -f newlists'. This will import only the mbox files of mailman lists that have been added to the lurker configuration because they were new to lurker. COMMANDS
-p, --parse Parse mailman lists, and create a lurker configuration include file containing all parsed lists. Lists that are already configured in lurker are ignored. -i, --import Import archives of all lists. This parses the lurker configuration and imports the mailman mbox at /var/lib/mailman/archives/private/<list>.mbox/<list>.mbox for every list. OPTIONS
-c, --config <config> Use <config> as lurker configuration file. Default: /etc/lurker/lurker.conf -o, --outfile <outfile> Write list configuration to <outfile>. If this is not specified, <lurker.conf>.mailman will be used. This option is only useful in conjunction with -p. -g, --group <group> Use <group> for new lists. Default is 'undef'. This option is only useful in conjunction with -p. -a, --listhost <listhost> Use <listhost> as host for new list addresses. If a new list is called 'mylist' and <listhost> is lists.org, then the list address will be mylist@lists.org. Default is 'example.org'. This option is only useful in conjunction with -p. -l, --link <url link> Use <url link> as base for links of new lists. If a list is called 'mylist', and <url link> is 'http://lists.org', then the link address will be http://lists.org/mylist. Default is 'http://example.org'. This option is only useful in conjunction with -p. -s, --lang <language> Use <language> as language for new lists. Needs to be a language token. Default is 'en'. This option is only useful in conjunction with -p. -w, --write-lists <file> Write a list of all lists that have been added to the lurker configuration. Safe that list in <file>. Default is off. This option is only useful in conjunction with -p. -x, --list-cmd <file> Use <command|file> to get the list of mailman lists that should be parsed. When <command|file> is a command, it needs to end with ' |'. Default is '/var/lib/mailman/bin/list_lists |'. This option is only useful in conjunction with -p. -f, --listfile <file> Import only lists that are listed in <file>. This option is only useful in conjunction with -i. -d, --lists <one[,two,...]> Import only lists that are given as argument. This option is only useful in conjunction with -i. -h, --help Display a help message. -v, --version Display mailman2lurker's version number. SEE ALSO
list_lists(8), lurker-index(8) AUTHOR
This program was written by Jonas Meurer <jonas@freesources.org>. COPYRIGHT
mailman2lurker may be copied and modified under the terms of the GNU General Public License. 2011-09-19 MAILMAN2LURKER(8)
All times are GMT -4. The time now is 02:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy