07-09-2012
There's probably some difference between the headers. Perhaps a carriage return, or an extra space or tab somewhere? Take a close look with od, hd, hexdump, or sed -n l.
Regards,
Alister
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
See my other post on sdiff ....
I don't think sdiff is able to do what I want.
The 'comm' command does what I need and works fine as
far as the logic and results.
The problem I'm having is with the output format, it outputs 3 columns of data,
but because of the way it starts each line... (2 Replies)
Discussion started by: cowpoke
2 Replies
2. UNIX for Advanced & Expert Users
i have 2 files that contains a sorted list of IP addresses.
file_A contains a list of all IPs
file_B contains only around 50% of what is in file_A.
I tried to execute
comm -23 file_A file_B > file_C
to get the difference. My objective is to put all the IPs that are in file_A but not... (1 Reply)
Discussion started by: tads98
1 Replies
3. Shell Programming and Scripting
Hi
I have issue with "comm " command
file-1
----
l65059
l65407
l68607
l68810
l69143
l71310
l72918
l73146
l73273
l76411
file-2
----- (8 Replies)
Discussion started by: amitrajvarma
8 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I need help in comm command , I am having 2 files . I have to display the common line in the two file only onnce and i have to also display the non common line as well.
tmpcut1 -- First file
cat tmpcut1
smstr_303000_O_432830_... f_c2_queue_sys30.sys30 RUNNING 10 1000... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
5. UNIX for Dummies Questions & Answers
could some one please explain with examples how comm -12 & comm -3 works. I am confused with manual page, Thankyou. (2 Replies)
Discussion started by: Ariean
2 Replies
6. Shell Programming and Scripting
I need to compare 2 files. I need to see if 1 file has records that are not in a second file. I did some searching and found the 'comm' command. According to the man pages
comm -23 test1.txt test2.txt
Will tell me what is in file 1 and not in file 2. So I did a simple test
test1.txt has the... (3 Replies)
Discussion started by: guessingo
3 Replies
7. Linux
The manual does not cover this very well. What do the following compares will do ?
1) comm -13 file1 file2: will it display what is in file2 not in file1?
2) comm -23 file1 file2: will it display what in 1 but not in 2 ?
Thanks (5 Replies)
Discussion started by: mrn6430
5 Replies
8. Shell Programming and Scripting
Hello all ,
I have two files a.txt and b.txt which have same content . They contain data that is fetched from database through a java program. When I delete a line in a.txt and run the below command
comm -13 a.txt b.txt
I am not getting the expected result i.e. the line i deleted from... (5 Replies)
Discussion started by: RaviTej
5 Replies
9. UNIX for Beginners Questions & Answers
Hi,
How can i ignore case between 2 files in unix using COMM command.
2 input files are:
-bash-4.1$ more x2.txt
HELLO
hi
HI
raj
-bash-4.1$ more x3.txt
hello
hi
raj
COMM command:
-bash-4.1$ comm x2.txt x3.txt
hello
HELLO
hi (3 Replies)
Discussion started by: raju2016
3 Replies
10. Shell Programming and Scripting
Given the output below (simplified) extracted from the comparison of two curl -I commands saved in two different files, I am looking for the best approach to highlight the following scenarios in a script:
this header exists only in file1.txt but this one does not
this one exists in both cases... (1 Reply)
Discussion started by: muppets
1 Replies
LEARN ABOUT HPUX
smfi_addheader
smfi_addheader(3N) smfi_addheader(3N)
NAME
smfi_addheader() - adds a header to the current sendmail message
SYNOPSIS
PARAMETERS
includes the following arguments:
ctx Specifies the opaque context structure.
headerf Specifies the header name, which is a non-NULL, null- terminated string.
headerv Specifies the header value to be added. headerv is a non-NULL, null-terminated string and can be an empty string.
DESCRIPTION
adds a header to the current message. can be called only from the function.
Notes
does not change existing headers of a message. To change the current value of a header, use the routine.
A filter that calls the must set the flag in the structure passed to the
For the filter, the order in which filters are placed is important. Filters placed later in the sequence will observe the changes already
done by the earlier filters.
The name and the value of the header are not checked for standards compliance. However, each line of the header must be under 2048 charac-
ters. If longer headers are needed, multi-line header must be used. To make a multi-line header, insert a line feed (ASCII 0x0a, or
in
C) followed by at least one whitespace character, such as, a space (ASCII 0x20) or tab (ASCII 0x09, or in C). The line feed must not be
preceded by a carriage return (ASCII 0x0d); the MTA adds this automatically. It is the responsibility of the filter writer to ensure that
standards are not violated.
RETURN VALUE
returns due to the following reasons:
o The headerf or headerv is
o Adding headers in the current connection state is invalid.
o Memory allocation failure.
o Network error
o is not set when the routine is called.
returns on success.
EXAMPLES
Following is an example to add a header:
AUTHOR
was developed by the Sendmail Inc.
SEE ALSO
smfi_chgheader(3N), smfi_insheader(3N), smfi_addrcpt(3N), smfi_delrcpt(3N), smfi_replacebody(3N).
on
smfi_addheader(3N)