Sponsored Content
Top Forums Shell Programming and Scripting Finding first difference between two files Post 302768637 by Jotne on Saturday 9th of February 2013 04:26:24 AM
Old 02-09-2013
I am 100% sure you can do this easy with awk, but I have not worked much with array.
There you can add an exit if diff found.
This User Gave Thanks to Jotne For This Post:
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Finding the time difference

Hi, I have two files A.txt and B.txt. And i have the following attributes in both the files. <date and time> <a unique id> For eg: <2007 May 30 20:29:36:034 GMT> <ID1> in A.txt <2007 May 30 20:42:36:038 GMT> <ID1> in B.txt Now, i need to find the time difference... (0 Replies)
Discussion started by: padma.raajesh
0 Replies

3. Shell Programming and Scripting

finding difference between 2 directory recursively

Hi, i'm trying to compare two directories in Unix. I need a recursive search ie my shell script should also compare common files in those two directory and so on... any clues.. ?? (2 Replies)
Discussion started by: yayati
2 Replies

4. Shell Programming and Scripting

Finding difference in two comma separated files in UINX

Dear All, I have requirement like this: I have 2 camma seperated files file1: 1,aaa,bbb,ccc, 2,bbb,ccc,ddd, 3,ccc,ddd,eee, file2: 1,aaa,bbb,ccc, 2,bbb,ddd,ddd, 3,ccc,ddd,eee, my requirement is I should get message in the out put like: There is a difference in 3 rd filed in... (2 Replies)
Discussion started by: mymoto
2 Replies

5. Shell Programming and Scripting

finding difference between two files

Hi, I have two files one with 12486 lines second one with 13116 As per the comparsion between two files the count have 630 difference I used diff command to find the difference between two files but it's not understandable could any one suggest any command to get 630 records in a new... (4 Replies)
Discussion started by: thelakbe
4 Replies

6. Shell Programming and Scripting

Need help in finding in date difference

Hi, My date is coming as STARTDATE=Sun Jul 15 00:34:23 2012 ENDDATE=Sun Jul 15 00:50:04 2012I want difference between these two dates,anyone's helps will be appriciated. Thanks Prasoon (3 Replies)
Discussion started by: prasson_ibm
3 Replies

7. UNIX for Dummies Questions & Answers

Finding difference in 1st field for rows of data

I have a file that has multiple lines, of grouped data, that typically all have the same values in the 1st field, however, I would like to search the 1st field for any differences and set a flag to use in an "if" statement to run some other routine. An example of the typical file is below,... (2 Replies)
Discussion started by: co21ss
2 Replies

8. Shell Programming and Scripting

Finding difference in 2 different timestamps

Legends, I have a requirement to run the script exactly after one hour of completion of dependent script. Eg: Script B should run after one hour on the completion of Script A. I got the time stamps using following variables. these scripts runs in autosys > DATE=`date +%H:%M` >... (4 Replies)
Discussion started by: sdosanjh
4 Replies

9. Shell Programming and Scripting

Finding difference in between two array's of strings

Hi, Can anybody help me in finding the difference between two array elements with the help of code pls. purge=("Purge Concurrent Request and/or Manager Data" "Purge Signon Audit data" "Purge Obsolete Workflow Runtime Data" "Purge Logs and Closed System Alerts") purge_1=("Purge Obsolete... (3 Replies)
Discussion started by: Y.balakrishna
3 Replies

10. Shell Programming and Scripting

Finding difference between two columns of unequal length

Hi, I have two files which look like this cat waitstate.txt 18.2 82.1 cat gostate.txt 5.6 5.8 6.1 6.3 6.6 6.9 7.2 7.5 (4 Replies)
Discussion started by: jamie_123
4 Replies
DCMD(1)                                                       General Commands Manual                                                      DCMD(1)

NAME
dcmd - expand file lists of .dsc/.changes files in the command line SYNOPSIS
dcmd [options] [command] [changes-file|dsc-file] [...] DESCRIPTION
dcmd replaces any reference to a .dsc or .changes file in the command line with the list of files in its 'Files' section, plus the file itself. It allows easy manipulation of all the files involved in an upload (for changes files) or a source package (for dsc files). If command is omitted (that is the first argument is an existing .dsc or .changes file), the expanded list of files is printed to stdout, one file by line. Useful for usage in backticks. OPTIONS
There are a number of options which may be used in order to select only a subset of the files listed in the .dsc or .changes file. If a requested file is not found, an error message will be printed. --dsc Select the .dsc file. --schanges Select .changes files for the 'source' architecture. --bchanges Select .changes files for binary architectures. --changes Select .changes files. Implies --schanges and --bchanges. --archdeb Select architecture-dependent binary packages (.deb files). --indepdeb Select architecture-independent binary packages (.deb files). --deb Select binary packages (.deb files). Implies --archdeb and --indepdeb. --archudeb Select architecture-dependent udeb binary packages. --indepudeb Select architecture-independent udeb binary packages. --udeb Select udeb binary packages. Implies --archudeb and --indepudeb. --tar, --orig Select the tar file. --diff Select the Debian diff file. Each option may be prefixed by --no to indicate that all files not matching the specification should be selected. It is not possible to combine positive filtering options (e.g. --dsc) and negative filtering options (e.g. --no-changes) in the same dcmd invocation. --no-fail-on-missing, -r If any of the requested files were not found, do not output an error. EXAMPLES
Copy the result of a build to another machine: $ dcmd scp rcs_5.7-23_amd64.changes elegiac:/tmp rcs_5.7-23.dsc 100% 490 0.5KB/s 00:00 rcs_5.7-23.diff.gz 100% 12KB 11.7KB/s 00:00 rcs_5.7-23_amd64.deb 100% 363KB 362.7KB/s 00:00 rcs_5.7-23_amd64.changes 100% 1095 1.1KB/s 00:00 $ $ dcmd --diff --deb scp rcs_5.7-23_amd64.changes elegiac:/tmp rcs_5.7-23.diff.gz 100% 12KB 11.7KB/s 00:00 rcs_5.7-23_amd64.deb 100% 363KB 362.7KB/s 00:00 $ Check the contents of a source package: $ dcmd md5sum rcs_5.7-23.dsc 8fd09ea9654cda128f8d5c337d3b8de7 rcs_5.7.orig.tar.gz f0ceeae96603e823eacba6721a30b5c7 rcs_5.7-23.diff.gz 5241db1e231b1f43ae5514b63d2523f8 rcs_5.7-23.dsc $ $ dcmd --no-diff md5sum rcs_5.7-23.dsc 8fd09ea9654cda128f8d5c337d3b8de7 rcs_5.7.orig.tar.gz 5241db1e231b1f43ae5514b63d2523f8 rcs_5.7-23.dsc $ SEE ALSO
dpkg-source(1), dpkg-genchanges(1). AUTHOR
This program was written by Romain Francoise <rfrancoise@debian.org> and is released under the GPL, version 2 or later. DEBIAN Debian Utilities DCMD(1)
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy