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)
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)
After run errclear, it will clean the err log file. After that, if I still need display the log has been cleared by errclear, how can I do?
thanks (5 Replies)
Im using the vmstat command to display the CPU run queue, but i want to put that into a program so is there a way to just display the number under the r?
Thanks, (1 Reply)
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)
Hi -- Working on my own through the book "Learning the KornShell and came to task 4-1, which there is:
a script "highest" and it will sort an "album" file.
highest filename
The author mentions adding a header line to the scripts output if the user types in the -h option. It says "assume the... (9 Replies)
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)
Hi,
So I am trying to print the first row(header) first column alongwith the matched value. But I am not sure how do I print the same, by matching a pattern located in the file
eg
File contents
Name Place
Jim NY
Jill NJ
Cathy CA
Sam TX
Daniel FL
And what I want is... (2 Replies)
SDIFF(1) BSD General Commands Manual SDIFF(1)NAME
sdiff -- side-by-side diff
SYNOPSIS
sdiff [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2
DESCRIPTION
sdiff displays two files side by side, with any differences between the two highlighted as follows: new lines are marked with '>'; deleted
lines are marked with '<'; and changed lines are marked with '|'.
sdiff can also be used to interactively merge two files, prompting at each set of differences. See the -o option for an explanation.
The options are:
-l Only print the left column for identical lines.
-o outfile
Interactively merge file1 and file2 into outfile. In this mode, the user is prompted for each set of differences. See EDITOR and
VISUAL, below, for details of which editor, if any, is invoked.
The commands are as follows:
l Choose left set of diffs.
r Choose right set of diffs.
s Silent mode - identical lines are not printed.
v Verbose mode - identical lines are printed.
e Start editing an empty file, which will be merged into outfile upon exiting the editor.
e l Start editing file with left set of diffs.
e r Start editing file with right set of diffs.
e b Start editing file with both sets of diffs.
q Quit sdiff.
-s Skip identical lines.
-w width
Print a maximum of width characters on each line. The default is 130 characters.
Options passed to diff(1) are:
-a Treat file1 and file2 as text files.
-b Ignore trailing blank spaces.
-d Minimize diff size.
-I regexp
Ignore line changes matching regexp. All lines in the change must match regexp for the change to be ignored.
-i Do a case-insensitive comparison.
-t Expand tabs to spaces.
-W Ignore all spaces (the -w flag is passed to diff(1)).
ENVIRONMENT
EDITOR, VISUAL
Specifies an editor to use with the -o option. If both EDITOR and VISUAL are set, VISUAL takes precedence. If neither EDITOR nor
VISUAL are set, the default is vi(1).
TMPDIR Specifies a directory for temporary files to be created. The default is /tmp.
SEE ALSO diff(1), diff3(1), vi(1), re_format(7)AUTHORS
sdiff was written from scratch for the public domain by Ray Lai <ray@cyth.net>.
CAVEATS
Although undocumented, sdiff supports all options supported by GNU sdiff. Some options require GNU diff.
Tabs are treated as anywhere from one to eight characters wide, depending on the current column. Terminals that treat tabs as eight charac-
ters wide will look best.
BUGS
sdiff may not work with binary data.
BSD February 21, 2007 BSD