Can anyone help me with this.
There are two files and I have to match the second file records with that of first and if matched, print the output in two fies, one containing the matched records and other containing the rest.
Here is the example.
As can be seen 111 and yu8 matches with the first reord in file 1, so the whole row should be printed.
Output should be
Can anyone help me with this. Thanks.
I have to compare two text files, very few of the lines in these files will have some difference in some column.
The files size is in GB.
Sample lines are as below:
11111122222222333333aaaaaaaaaabbbbbbbbbccccccccdddddd
11111122222222333333aaaaaaaaaabbbbbbbbbccccccccddeddd
So assuming these... (19 Replies)
hi
I have 2 files to comapre ,in file a sible column it is numbers,in file b2 numbers and other values with coma separated.
i want compare numbers in file a with file b,and the out put put should be in C with numbers in both file a and b along with other columns of file b.
i used folowing... (7 Replies)
Hi All,
i've written script to collect the tablespaces and the datafiles related to each tablespaces with free space available and directed to two logfiles.. ( pasted below)
1. datafile_test.log
PSAPSR3
PSAPSR3700
PSAPSR3USR
2. freedata_test.log... (6 Replies)
I have two text files which have records of thousand rows. Each row is having around 40 columns. Each column is tab delimited. Each row is delimited by newline character.
My requirement is to find for each row i need to find whether any column is different between the two files. For each row i... (8 Replies)
Hi i have 2 csv files a.csv and b.csv with the same number of columns and a list of values in both of it. Each and every individual value in both the files need to compared and if it matches then print correct in a new csv file otherwise print Incorrect
eg
a.csv
1,12/27/2007,Reward,$10.00... (5 Replies)
now i have a different file zoo.txt with content
123|zoo
234|natan
456|don
and file rick.txt with contents
123|dog|pie|pep
123|tail|see|newt
456|som|sin|sim
234|pay|rat|cat
i want to look for lines in file zoo.txt column1 that has same corresponding lines in column 1 of... (6 Replies)
Hello, I am trying to compare 2 files and get only the new lines as output. Note that new lines can be anywhere in the file and not necessarily at the bottom of the file.
I have made the following progress so far.
/home/aa>cat old.txt
0001 732 A
0002 732 C
0005 732 D... (7 Replies)
Dear All,
I would really appreciate if you can help me to resolve this file comparison
I have two files:
file1:
chr start end ID gene_name
chr1 2020 3030 1 test1
chr1 900 5000 2 test1
chr2 5000 8000 3 test2
chr3 6000 12000 4 test3
chr3 6000 15000 5 test3
file2:... (2 Replies)
HI,
I have two files and contains many Fields with | (pipe) delimitor, wanted to compare both the files and get only unmatched perticular fields. this i wanted to use in shell scriting.
ex:
first.txt
111 |abc| 230| hbc231 |bbb |210 |bbd405 |ghc |555 |cgv
second.txt
111 |abc |230 |hbc231... (1 Reply)
Discussion started by: prawinmca
1 Replies
LEARN ABOUT SUNOS
cdc
sccs-cdc(1) User Commands sccs-cdc(1)NAME
sccs-cdc, cdc - change the delta commentary of an SCCS delta
SYNOPSIS
/usr/ccs/bin/cdc -rsid [-mmr-list] [ -y [comment]] s.filename...
DESCRIPTION
cdc annotates the delta commentary for the SCCS delta ID (SID) specified by the -r option in each named s.file.
If the v flag is set in the s.file, you can also use cdc to update the Modification Request (MR) list.
If you checked in the delta, or, if you own the file and directory and have write permission, you can use cdc to annotate the commentary.
Rather than replacing the existing commentary, cdc inserts the new comment you supply, followed by a line of the form:
*** CHANGED *** yy/mm/dd hh/mm/ss username
above the existing commentary.
If a directory is named as the s.filename argument, the cdc command applies to all s.files in that directory. Unreadable s.files produce an
error; processing continues with the next file (if any). If `-' is given as the s.filename argument, each line of the standard input is
taken as the name of an SCCS history file to be processed, and the -m and -y options must be used.
OPTIONS -rsid Specify the SID of the delta to change.
-mmr-list Specify one or more MR numbers to add or delete. When specifying more than one MR on the command line, mr-list takes the
form of a quoted, space-separated list. To delete an MR number, precede it with a ! character (an empty MR list has no
effect). A list of deleted MRs is placed in the comment section of the delta commentary. If -m is not used and the stan-
dard input is a terminal, cdc prompts with MRs? for the list (before issuing the comments? prompt). -m is only useful when
the v flag is set in the s.file. If that flag has a value, it is taken to be the name of a program to validate the MR num-
bers. If that validation program returns a non-zero exit status, cdc terminates and the delta commentary remains
unchanged.
-y[comment] Use comment as the annotation in the delta commentary. The previous comments are retained; the comment is added along with
a notation that the commentary was changed. A null comment leaves the commentary unaffected. If -y is not specified and
the standard input is a terminal, cdc prompts with comments? for the text of the notation to be added. An unescaped NEW-
LINE character terminates the annotation text.
EXAMPLES
Example 1: Changing the annotated commentary
The following command:
example% cdc -r1.6 -y"corrected commentary" s.program.c
produces the following annotated commentary for delta 1.6 in s.program.c:
D 1.6 88/07/05 23:21:07 username 9 0 00001/00000/00000
MRs:
COMMENTS:
corrected commentary
*** CHANGED *** 88/07/07 14:09:41 username
performance enhancements in main()
FILES
z.file temporary lock file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsprot |
+-----------------------------+-----------------------------+
SEE ALSO sccs(1), sccs-admin(1), sccs-comb(1), sccs-delta(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), what(1), sccsfile(4),
attributes(5)DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)).
SunOS 5.10 1 Nov 1999 sccs-cdc(1)