will output a list of differences between the two files <I>oldfile</I> and <I>newfile</I>. If your system has sdiff (or the --side-by-side option to diff) that may also be useful.
Hi how do you compare it in ksh
ALINES=$(cat AFILE | wc -l)
BFIRST=$(head -1 BFILE)
I got ALINES=9 and BFRIST=records'9'
I want 9=9 , how do you write BLINES=9 from records'9' so I can say
ALINES==BLINES
Thanks (4 Replies)
I want a soultion to compare two arrays in sh with an easy way.I want a solution to synchrose users between different AIX servers where no NIS is available. All users are meant to be same on all 10 servers. So the approach is to consider first server as master user repository and whatever the users... (0 Replies)
Hi all,
How to check whether the given the two dates is minimal.
example:
Date 1 : 23-03-2008 with timestamp
Date 2: 20-03-2008 With tmestamp
I want to compare the twodates and which it gives the minimum date
i wnat to get the output like this below
output: the Date2 is... (1 Reply)
grep '^.......$' /usr/dict/words | cut -c1,2,3,5,6,7
This gives a list of 6 character strings, some are words some not. Any suggestions on how I can get rid of the ones that aren't words and print the ones that are? I have tried look with no luck yet. (1 Reply)
I have four files, I need to compare these files together.
As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each file with other which will increase the codes.
Please suggest if you know some commands whcih can... (6 Replies)
Hi,
file contains only one row.
END OF FILE. ROW COUNT: 8,9
We need to check the file contains exact string "END OF FILE. ROW COUNT: " if yes, get the 8,9 values
then compare if both are equal print the "equal" if not "notequal".
Thanks, (4 Replies)
Hi,
I need your help with the below mentioned issue:
I have 2 files say,
file1.txt:
id|no|cde
a|4|7
b|3|2
c|8|8
d|8|9
file2.txt:
id|no|cde
a|4|6
b|2|2
c|8|8 (1 Reply)
Hi guys, looking for some help with a way to compare data in two files but with some conditions.
example,
File 1 consists of
site1,10.1.1.1
site2,20.2.2.2
site3,30.3.3.3
File 2 contains
site1,l0.1.1.1
site2,50.1.1.1
site3,30.3.3.3
site4,40.1.1.1
I want to be able to match the... (1 Reply)
Hi,
I have a file containing a list of codes, followed by a description, such as below:
008.0,ESCHERICHIA COLI
008.1,ARIZONA
008.2,AEROBACTER AEROGENES
008.6,ENTERITIS DUE TO SPECIFIED VIRUS
008.8,OTHER ORGANISM, NOT ELSEWHERE CLASSIFIED
008,INTESTINAL INFECTIONS DUE TO OTHER ORGANISMSI... (6 Replies)
praliases(1) General Commands Manual praliases(1)NAME
praliases - display system mail aliases
SYNOPSIS
praliases [-f filename] [--] [alias_name...]
OPTIONS
Displays the aliases using the specified dbm file instead of the system aliases file.
OPERANDS
The alias name to find. If no aliases are given, then the entire contents of the dbm file are displayed.
DESCRIPTION
The praliases command displays system aliases used by the sendmail(8) program. If no arguments are given, the praliases command displays
all of the system aliases contained in the file /var/adm/sendmail/aliases.
An alternative file can be specified using the -f option.
Specific aliases can be displayed by specifying one or more alias names.
[Tru64 UNIX] Aliases can be created either with or without the terminating null character ('