Sponsored Content
Top Forums Shell Programming and Scripting Compare files across 2 UNIX boxes Post 302090751 by Corona688 on Wednesday 27th of September 2006 10:20:22 AM
Old 09-27-2006
You do realize there's already a perfectly good program to compare files without you building your own, right? It's called 'diff'.

As for comparing files on different systems, you could mount a directory from one machine onto another with nfs.
 

10 More Discussions You Might Find Interesting

1. Programming

text boxes, radio buttons , check boxes in c++ on unix

Hi ! Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix. I think it would be done using curses.h ..but that's all i know. TIA, Devyani. (3 Replies)
Discussion started by: devy8
3 Replies

2. UNIX for Dummies Questions & Answers

Help! Suggestions on what I can I use my 2 unix boxes for?

Once upon a looong time ago I used to work with Unix systems - SGI mainly. Now I've inherited 2 boxes - an SGI dual processor Octane and an Indigo2. For the past 2 years they've sat waiting for me to do something with them and never getting round to it. I run a windows network at home so... (3 Replies)
Discussion started by: JimmyChang
3 Replies

3. UNIX for Advanced & Expert Users

UNIX; Compare two files

Hi Guys, Requirement: Want to compare two files, if the the content of both files is same then show "Good result" else Show "Bad Result" I am using the following logic if( cmp -s a b = 0 ) then echo "Good result" else echo "Bad result" exit 0 fi But this is... (1 Reply)
Discussion started by: abhishek3598
1 Replies

4. UNIX for Dummies Questions & Answers

Unix Compare Files

Hi, I need to compare 2 files based on the first field in each file and output the differences to a new file. example File 1 and File 2 both have first field as Number ie: File 1 1252652355 1859553322 1778899562 File 2 1252652355 1859553322 So I would expect File 3 to... (2 Replies)
Discussion started by: Lagre1
2 Replies

5. UNIX for Dummies Questions & Answers

how can i unix compare two files??

how can i unix compare two files?? var1 = 6499 7328 6351 7583 7573 var2 = 6499 7328 6351 7583 7777 i did: diff $var1 $var2 and i got the output: 1c1 < 6499 7328 6351 7583 7573 --- > 6499 7328 6351 7583 7777 what can i do with it? and what does it tell me?? how can i knoe that... (2 Replies)
Discussion started by: nirnir26
2 Replies

6. UNIX for Advanced & Expert Users

How to compare two files using UNIX?

I have two files which have primary key(s) for each row. I need to compare both the files and produce the output in the following format. Primary key(s),file1 value,file2 value. Both the input files will be comma separated files. I have accomplished this using perl, but it is... (6 Replies)
Discussion started by: gpsridhar
6 Replies

7. UNIX for Dummies Questions & Answers

problem to determine all files and dir match up on 2 different unix boxes

Hi Friends I have 2 solaris boxes and I need to check certain directories (on local filesystem and mounted nfs) to make sure that they match up on both boxes and to delete or move the other mismatches to elsewhere on the local filesystem. I investigated for unix commands like rsync, and tree... (1 Reply)
Discussion started by: mpc8250
1 Replies

8. Shell Programming and Scripting

Compare two files in unix

Hi Gurus I need your kind help sorting the below query I have two text files File1.txt ID Name Address 101 Srinath BBB 102 Sidharth CCC File2.txt ID Name Address 102 Siddharth DDD 103 Suman EEE Now the requirement is if the second file has... (0 Replies)
Discussion started by: Pratik4891
0 Replies

9. Shell Programming and Scripting

Compare two files in UNIX

Hi, I have two files File1 Contents: abc dcf sdc File2 Contents: dcf sdc erg Now my program should return the contents existing in File1 but not in File2. In this case output shoud be "abc" as abc is not available in File 2. It should not return "erg" by saying it is... (4 Replies)
Discussion started by: forums123456
4 Replies

10. Shell Programming and Scripting

Compare two files in UNIX

I have requirement to compare two files in unix. Below are the sample files. File1: cn=test123,cn=bobgroup,dc=ind,dc=com cn=bob123,cn=bobgroup,dc=ind,dc=com cn=test13,cn=bobgroup,dc=ind,dc=com cn=est12,cn=bobgroup,dc=ind,dc=com cn=st123,cn=bobgroup,dc=ind,dc=com File2... (1 Reply)
Discussion started by: babu92
1 Replies
PREREX(5)																 PREREX(5)

NAME
prerex_format -- a format for prerequisite-chart descriptions DESCRIPTION
This manual describes the format of prerequisite-chart descriptions that can be processed by [pdf]latex (normally using a suitable pre- rex.sty(7) style file) and edited using the prerex(1) interactive editor (or by any conventional text editor). TERMINOLOGY
A prerequisite chart consists of a number of course boxes, linked by arrows. Courses are either half or full, and may be required or optional (or neither). Each course box can contain a course code (upper left corner), a course title (lower half), and timetable informa- tion (upper right corner). An arrow can be either a prerequisite (solid), a corequisite (dotted), or recommended (dashed). When a conven- tional arrow would be inappropriate, a mini course just above a target box can be used. STRUCTURE
The file should contain exactly one instance of a LaTeX environment egin{chart} instruction ... end{chart} with at most one instruction per line. Note that a program such as prerex(1) analyzes prerex-format files without using TeX; for example, macro definitions will be ignored and macro calls will not be expanded. Instructions may be preceded by white space. Lines that start with % are treated as comments and ignored. The order of instructions is not significant except that the instruction for the source and target box o an arrow should precede the instruction for the arrow. The instruction formats are described in the following sections. COURSE BOXES
The instructions producing course boxes have the following forms: halfcourse x,y:{code}{title}{timetable} fullcourse x,y:{code}{title}{timetable} eqhalfcourse x,y:{code}{title}{timetable} eqfullcourse x,y:{code}{title}{timetable} opthalfcourse x,y:{code}{title}{timetable} optfullcourse x,y:{code}{title}{timetable} where x,y are the coordinates of the centerpoint of the box, relative to the origin of the coordinate system at the lower-left corner of the diagram. The code, title, and timetable arguments are arbitrary (well-bracketed) text, possibly with LaTeX markup. The following are similar but take an additional argument to specify the (non-default) background color of the course box: halfcoursec x,y:{code}{title}{timetable}{color} fullcoursec x,y:{code}{title}{timetable}{color} eqhalfcoursec x,y:{code}{title}{timetable}{color} eqfullcoursec x,y:{code}{title}{timetable}{color} opthalfcoursec x,y:{code}{title}{timetable}{color} optfullcoursec x,y:{code}{title}{timetable}{color} MINI COURSE BOXES AND TEXT
A mini course is produced by an instruction of the form mini x,y:{code} A text line is inserted into the chart by an instruction of the form ext x,y:{line-of-text} The maximum allowed length of a course-code may be smaller that the maximum allowed for a line of text. ARROWS
Arrows between course boxes (or from a mini to a course box) are produced by instructions of the form prereq x0,y0,x1,y1: coreq x0,y0,x1,y1: ecomm x0,y0,x1,y1: These produce, respectively, solid, dotted, and dashed arrows from the course box (or mini) centered at coordinates x0,y0 to the course box centered at coordinates x1,y1. In some implementations, certain arrows by default have a non-zero curvature. It is possible to override the default curvature for a par- ticular arrow by using the instructions prereqc x0,y0,x1,y1;c: coreqc x0,y0,x1,y1;c: ecommc x0,y0,x1,y1;c: where c is an integer in the range 0-100 specifying the desired curvature; for example, c=0 will produce a straight arrow. To change the default curvature, the user program may redefine the DefaultCurvature command. COORDINATE GRID
The following instruction produces a coordinate grid, which is useful for editing a diagram: grid This is normally placed before all the other instructions so that grid lines are in the background, covered by course boxes, minis, and arrows. WEB LINKS
Course boxes may be linked to web addresses. The URL for course boxes may be set by the user by redefining the CourseURL command; when called for a course box, it is supplied with three arguments, the x and y coordinates of the box, mini, or textline, and the code argument of the course box. For example, enewcommand{CourseURL}[3]{http://www.cs.queensu.ca/undergraduate/courses/#3.html} is appropriate for courses at the School of Computing, Queen's University. The first two arguments can be used to display the coordinates of a box, mini, or textline in some PDF viewers while the mouse hovers over it when the source file is being edited. AUTHOR
R. D. Tennent (rdt@cs.queensu.ca) SEE ALSO
prerex(1), prerex.sty(7). prerex_format 2012-03-21 PREREX(5)
All times are GMT -4. The time now is 09:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy