Sponsored Content
Full Discussion: Sdiff
Top Forums UNIX for Beginners Questions & Answers Sdiff Post 303042169 by loktamann on Tuesday 17th of December 2019 08:21:02 AM
Old 12-17-2019
Sdiff

Code:
file1:
USER:XACME\cn3937
User:XACME\z01220
User:XACME\z01404
User:XACME\z02102
User:XACME\U17234
File2:
USER:XACME\lawson
USER:XACME\cn7913
USER:XACME\cn8037
USER:XACME\cn8042
USER:XACME\cn8046
USER:XACME\u31645
USER:XACME\u19050
USER:XACME\U28715
USER:XACME\U17234
USER:XACME\cn3937

sdiff -i file1 file2

and my result shows:
USER:XACME\cn3937                                             | USER:XACME\lawson
User:XACME\z01220                                             | USER:XACME\cn7913
User:XACME\z01404                                             | USER:XACME\cn8037
User:XACME\z02102                                             | USER:XACME\cn8042
                                                              > USER:XACME\cn8046
                                                              > USER:XACME\u31645
                                                              > USER:XACME\u19050
                                                              > USER:XACME\U28715
User:XACME\U17234                                               USER:XACME\U17234
                                                              > USER:XACME\cn3937

I expect to see cn3937 matches with File2 as well. U17234 matches up perfectly. Thank you in advance for your help.


Last edited by Scrutinizer; 05-08-2020 at 07:01 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sdiff problem

Hi, I'm having the following problem with the unix sdiff command. for example if I try sdiff <filename 1> <filename 2> Where filename 1 and filename 2 contain really long pathnames that I need to compare. The output I get will be 139 characters long which is the default. But an output of... (0 Replies)
Discussion started by: ruudrio
0 Replies

2. UNIX for Dummies Questions & Answers

Sdiff ? problem

Hello, I'm using Sdiff to compare 2 files, I've used this before and it works fine and still does in some cases. But it seems to trip up when using combinations of alpha-numeric text. I created two simple files to test and as you can see it seems to trip up on the "gr55a" text, any ideas ? ... (2 Replies)
Discussion started by: cowpoke
2 Replies

3. UNIX for Dummies Questions & Answers

A more intelligent SDIFF

Hi all I have two files which are essentially the same. However the way an exponent is written is different (i.e. in 1 file, a particular number might be written as 1.43230000E+02 whereas in another it might be 1.4323E2). If I use SDIFF then the program will merely check the ASCII characters... (1 Reply)
Discussion started by: robbiegregg
1 Replies

4. UNIX for Dummies Questions & Answers

sdiff issue - not gathering correct difference

Hi there, I am hoping someone can help! I am doing a simple difference between two files using the sdiff command.. sdiff -s file1 file2 this works, but for some words it doesn't... Here is an example: fha 2B01 fha 2B01 fmaa 3A01 fmaa 3A01 fox 4A46 | fmx 3A01 ... (1 Reply)
Discussion started by: thegant
1 Replies

5. Shell Programming and Scripting

sdiff discrepancies

Hi All I have two large (similar) files that have a unique number in the first column...(the trade id) and then a value for that trade in the second column...delimited by "~". Here is a snippet of what the files look like 10030372~-410682.73 10030490~-4052867.73 10030646~-352592.21... (8 Replies)
Discussion started by: kbuttz
8 Replies

6. Shell Programming and Scripting

Using sdiff without files

Hi, I'm trying to use sdiff by parsing the output of another command instead of the filename: sdiff <(echo test1) <(echo test2)However, this seems to cause my terminal session to stop working. If I use it with normal diff it works fine: ~$ diff <(echo test1) <(echo test2) 1c1 < test1... (4 Replies)
Discussion started by: Subbeh
4 Replies

7. Shell Programming and Scripting

Sdiff query

I wanted to ask can sdiff be used for comparing files which are present in different network?? If yes then how? Thanks in Advance!!!!!!! (1 Reply)
Discussion started by: bhavanabahety
1 Replies

8. Shell Programming and Scripting

Script to compare files recursively using sdiff

Hi All, I have been surfing to get some idea on how to compare same files from two different paths. one path will have oldfiles directory and another path will have newfiles directory. Each main directories will have sub-directories in them and each sub-directories inturn will have... (3 Replies)
Discussion started by: Optimus81
3 Replies

9. Shell Programming and Scripting

Sdiff command

Hi i am comparing file on 2 different machine with the help of script. however i am get below o/p ======= /usr/tmp ========= ======= /usr/tmp not a regular file i am not sure what does "not a regular file mean" . is it something serious, if yes then what i need to check or we can... (1 Reply)
Discussion started by: scriptor
1 Replies

10. Shell Programming and Scripting

SDiff Two files with space problem

Hello guys, I have a problem. I'm trying to use SDiff with two files which are containing spaces. My problem is that I want to save the output with > in an extra file. If I try to use it like this. sdiff "test file1" "test file2" > OutputfileI get this message: usage: diff ... (11 Replies)
Discussion started by: Mariopart
11 Replies
NEWBIEDOC(1)						      General Commands Manual						      NEWBIEDOC(1)

NAME
newbiedoc - Debian documentation for newbies by newbies. SYNOPSIS
newbiedoc newbiedoc file DESCRIPTION
This manual page documents briefly the newbiedoc command. The program newbiedoc is a small script that starts your favorite browser and displays the index page of the NewbieDOC documentation package. Optionally, you can specify the name of a specific file to open in the browser. newbiedoc can also be run directly from the Debian menu in the X Window System: Debian -> Help -> NewbieDOC. NewbieDOC documentation is in the form of HTML files which form a snapshot of the documentation currently being developed by the Debian NewbieDOC project. Visit the wiki at http://newbiedoc.berlios.de for the most recent versions, or if you wish to contribute to the project. The wiki is very easy to use. All Debian users are encouraged to author, edit or add comments to the articles. Each NewbieDOC item is either explicitly licensed by its author, or licensed globally under the GNU Free Documentation License. SEE ALSO
The NewbieDOC wiki is at http://newbiedoc.berlios.de AUTHOR
The upstream source for newbiedoc was written by Chris Lale <chrislale@untrammelled.co.uk>. This manual page was written by Chris Lale <chrislale@untrammelled.co.uk>, for the Debian project (but may be used by others). 27th September 2009 NEWBIEDOC(1)
All times are GMT -4. The time now is 06:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy