Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Find difference between two files Post 302429026 by jagadish_gaddam on Friday 11th of June 2010 04:12:26 PM
Old 06-11-2010
it didnt work for me

Actually the files has the follwing data

File1:
Code:
Ranger/62/CAD
Ranger/62/GBP
Ranger/62/JPY
Ranger/OPTD/GBP
Broil/ABGMM/USD

File2:
Code:
Ranger/62/CAD
Ranger/62/GBP
Ranger/62/JPY
Broil/ABGMM/USD

When i use the above command it gives me below
Code:
2,5c2,4
Ranger/62/GBP                                                   |           Ranger/62/GBP
Ranger/62/JPY                                                   |           Ranger/62/JPY
Ranger/OPTD/GBP                                                 |           Broil/ABGMM/USD
Broil/ABGMM/USD                                                 <

which is not my requirement..pls help

Last edited by Franklin52; 06-11-2010 at 06:22 PM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

to find difference between two files

I have a file which gets appended with records daily..for eg. 1st day of the month i get 9 records ,2nd day 9 records .....till the last day in the month...the no of records may vary...i store the previous days file in a variable oldfile=PATH/previousdaysfile....i store the current days file in a... (6 Replies)
Discussion started by: ganesh_248
6 Replies

2. UNIX for Dummies Questions & Answers

Find difference in two files

Hola, Tengo un texto texto1.txt con el siguiente contenido: Malaga Cadiz Sevilla Hola Y otro .txt texto2.txt con: Malaga Cadiz Sevilla Cordoba Huelva quiero obtener en otro .txt la diferencia entre estos dos archivos: (14 Replies)
Discussion started by: danietepa
14 Replies

3. Solaris

Need help to find difference between two files

I need to find the difference between two files in UNIX. I tried diff, but couldn't get it right. There are two files: file1: apple mango strawberry banana grape file2: grape apple banana I need an output file like below: ... (11 Replies)
Discussion started by: kisaad
11 Replies

4. Shell Programming and Scripting

Find file size difference in two files using awk

Hi, Could anyone help me to solve this problem? I have two files "f1" and "f2" having 2 fields in each, a) file size and b) file name. The data are almost same in both the files except for few and new additional lines. Now, I have to find out and print the output as, the difference in the... (3 Replies)
Discussion started by: royalibrahim
3 Replies

5. UNIX for Advanced & Expert Users

Find difference between 2 files

I have 2 files as follows. file1.txt <cell>123</cell> <cell>345</cell> file2.txt <cell>123</cell> <cell>456</cell> out out should be output.txt <cell>456></cell> How do we achieve this> The difference betwenn the two files should be wirtten to the output file.. ... (2 Replies)
Discussion started by: kanthrajgowda
2 Replies

6. Shell Programming and Scripting

To find difference between two files on a whole

Hi, The requirement is to compare two files that has single column of records each. Comparison is to happen on a whole and not line by line. File1.txt 314589929 315611087 304924413 315989094 301171509 302984393 315609549 314593632 File2.txt 315611087 304924413 315989094 (2 Replies)
Discussion started by: anandek
2 Replies

7. Shell Programming and Scripting

script to find whether the difference between two files in only additions but not modifications

i basically have 2 files and sdiff of the files is given below sdiff file1 file 2 control_file < path INDEX < size 613 < mode 0444 ... (1 Reply)
Discussion started by: under_cons
1 Replies

8. Shell Programming and Scripting

Script to find difference between 2 files by column

Hi , i am newbie to shell scripting and am trying to do the below job, A shell script to be run with a command like sh Compare.ksh file1.txt file2.txt 1 2 > file3.txt 1 2-are the key columns Consider the delimiter would be Tab or comma File 1: SK TEST NAME MATHS PHYSICS 21 1... (1 Reply)
Discussion started by: shakthi666
1 Replies

9. Homework & Coursework Questions

Script to find difference between 2 files by column

Hi , i am newbie to shell scripting and am trying to do the below job, A shell script to be run with a command like sh Compare.ksh file1.txt file2.txt 1 2 > file3.txt 1 2-are the key columns Consider the delimiter would be Tab or comma File 1: SK TEST NAME MATHS PHYSICS 21 1 AAA... (1 Reply)
Discussion started by: shakthi666
1 Replies

10. Shell Programming and Scripting

Find difference in content between two particular lines in two files

I have two files named Before.txt and After.txt: Now i want to find the difference in content between <Marker 1> and <Marker 2> in the two files. ---------- Post updated at 05:00 PM ---------- Previous update was at 04:50 PM ---------- Any help will be highly appreciated..:) (3 Replies)
Discussion started by: proactiveaditya
3 Replies
GIT-IMPORT-DSC(1)					      git-buildpackage Manual						 GIT-IMPORT-DSC(1)

NAME
git-import-dsc - Import Debian packages into a Git repository SYNOPSIS
git-import-dsc [ --verbose ] [ --upstream-branch=branch_name ] [ --debian-branch=branch_name ] [ --[no-]sign-tags ] [ --keyid=gpg-keyid ] [ --debian-tag=tag-format ] [ --upstream-tag=tag-format ] [ --filter=pattern ] [ --[no-]pristine-tar ] [ --download ] [ --allow-same-versions ] [ --author-is-committer ] [ --author-date-is-committer-date ] debian-source.dsc git-import-dsc [ options ] --download [ --[no-]allow-unauthenticated ] URL | source-package DESCRIPTION
git-import-dsc imports a Debian source package into a Git repository, notes the package version in the commit logs, and commits the change. All information, including package name, version, Debian diffs, and upstream source is automatically detected from the source package. OPTIONS
--upstream-branch=branch_name The branch in the Git repository the upstream sources are put onto. Default is upstream. --debian-branch=branch_name The branch in the Git repository the debian sources are put onto. Default is master. --verbose -v verbose execution --[no-]sign-tags GPG sign all created tags --keyid=gpg-keyid use this keyid for gpg signing tags --debian-tag=tag-format use this tag format when tagging Debian versions, default is debian/%(version)s --upstream-tag=tag-format use this tag format when tagging upstream versions, default is upstream/%(version)s --filter=pattern filter out files glob-matching pattern. Can be given multiple times. --pristine-tar generate pristine-tar delta file --download Download the source package instead of looking for it in the local file system. The argument can either be a source-package name or an URL. The former uses apt-get to download the source while the later uses dget. --allow-unauthenticated Whether to skip signature verification on downloads. --allow-same-version Allow to import a package with the same debian version. --author-is-committer When importing the Debian patch, use the author identity as comitter identity. --author-date-is-committer-date When importing the Debian patch, use the author date as comitter date. Warning: Git will subtly misbehave if the committer date of a commit is not later than or equal to all its parents. CONFIGURATION FILES
Several gbp.conf files are parsed to set defaults for the above commandline arguments. See the [XRef to GBP.MAN.GBP.CONF] manpage for details. SEE ALSO
git-import-dscs(1), git-buildpackage(1), git-import-orig(1), git-dch(1), apt-get(1), dget(1), gbp.conf(5), debuild(1), git(1), pristine- tar(1), The Git-Buildpackage Manual <URL:file:///usr/share/doc/git-buildpackage/manual-html/index.html> AUTHOR
Guido Guenther <agx@sigxcpu.org> 01 June 2012 GIT-IMPORT-DSC(1)
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy