02-19-2007
No The Files Are Not The Same
I have two files that I need to combine. The information is similar but 1 file is larger than the other. They must be combined.
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i need to combine two file. These two files have the same line number, and i need to combine each corresponding line. I tried the paste, but i need coma as the delimeter. are there anyway to do it? thanks. (4 Replies)
Discussion started by: tao
4 Replies
2. Shell Programming and Scripting
hi all
i have 2 files f1 and f2
i have to combine these 2 files and make a new file f3
when i use paste f1 f2 >f3 its pasting vertically
but i want to paste horizontally
How to do ..
pls let me know (2 Replies)
Discussion started by: ravi.sadani19
2 Replies
3. Shell Programming and Scripting
I have two files: file1 and file2
the content of files1 is:
13
22
333
42
56
55
...
the content of file2 is:
aa
dd
cc
ee
ff
gg
... (1 Reply)
Discussion started by: fredao1
1 Replies
4. HP-UX
Hi :
I have a file containing the print queues with their IP address. I wanted to combine the 'lpstat' output with their respective IP address.
For example :
zebhtrmb-6078 lgonzale priority 0 Mar 17 11:50 on zebhtrmb
with
zebhtrmb-6078 lgonzale priority 0 ... (1 Reply)
Discussion started by: rdasari
1 Replies
5. Shell Programming and Scripting
Hi All ,
Any one help me to combine two files in shell scripting .Below is my requrement
i have 2 files as follows
filea
newyork America
Texas America
london Engalad
Fileb
abc
def
xyz
i have to combine this file as follows
newyork America abc
Texas ... (1 Reply)
Discussion started by: ajmalc
1 Replies
6. Shell Programming and Scripting
Ok here is what I have
file a
{{BEGIN}}
{{FAX
File b
5555464584
5555465292
5555465828
5555485930
5555474939
File C
}}
ON ORDERS LESS THAN 70 LBS AND THE PACKAGE IS A
COMBINED LENGTH AND GIRTH EQUAL TO OR LESS THAN
108" PLEASE UTILIZE UPS. ... (4 Replies)
Discussion started by: sctxms
4 Replies
7. Shell Programming and Scripting
I have multiple files; each file contains a certain data in a column view
simply i want to combine all those files into one file in columns
example
file1:
a
b
c
d
file 2:
1
2
3
4
file 3:
G (4 Replies)
Discussion started by: ahmedamro
4 Replies
8. Shell Programming and Scripting
Hi,
i have two files. i want to combine records from these two files in below manner :-
first line from first file(1st line)
2nd line from 2nd file(1st line)
3rd line from 1st file(2nd line)
4th line from 2nd file(2nd line)
so on.... (1 Reply)
Discussion started by: deepakiniimt
1 Replies
9. Shell Programming and Scripting
I have n of files with ending with _ZERO.txt
need to combine all file ending with _ZERO.txt into 1 file
ex:
A_ZERO.txt
1
2
B_ZERO.txt
3
4
Output:
FINAL.txt
1
2 (3 Replies)
Discussion started by: satish1222
3 Replies
10. UNIX for Beginners Questions & Answers
i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
comb(1) General Commands Manual comb(1)
NAME
comb - Combines Source Code Control System (SCCS) deltas
SYNOPSIS
comb [-clist] [-os] [-pSID] file...
The comb command writes to standard output a shell procedure for combining the specified deltas (SIDs) of an SCCS file and creating a new
version of the file with fewer deltas.
OPTIONS
Each option or group of options applies independently to each named file. Specifies a list of deltas (SIDs) that the shell procedure will
preserve (see get -ilist). The procedure will combine all other deltas. Accesses the reconstructed file at the release of the delta to be
created for each get -e generated; otherwise, accesses the reconstructed file at the most recent ancestor. Using the -o option may
decrease the size of the reconstructed SCCS file. It may also alter the shape of the delta tree of the original file. Specifies the SID
of the oldest delta for the resulting procedure to preserve. All older deltas are combined in the reconstructed file. Causes comb to gen-
erate a shell procedure that, instead of combining the deltas, produces a report for each file, which lists the file name, size (in blocks)
after combining, original size (also in blocks), and percentage change computed by the following formula: 100 * (original - combined) /
original
Run comb using this option before actually combining SCCS deltas in order to judge how much space will actually be saved by the com-
bining process.
DESCRIPTION
By piping the output of the comb command to a shell, or redirecting the output to a file and running that file as a shell procedure, you
can reduce the size of your SCCS file. You can first see how much the file will be reduced by running the comb command with the -s option.
If you specify a directory in place of file, the comb command performs the requested actions on all SCCS files (that is, those with file
names with the s. prefix). If you specify a - (dash) in place of file, the comb command reads standard input and interprets each line as
the name of an SCCS file. The comb command continues to take input until it reads End-of-File.
If you do not specify any options, the comb command preserves only leaf deltas and the minimal number of ancestors needed to preserve the
tree (see the delta command).
The comb command may rearrange the shape of the tree deltas.
The comb command may not save any space; in fact, it is possible for the reconstructed file to actually be larger than the original.
EXAMPLES
To generate a report on how much space will be saved by combing all deltas older than SID 1.4 for SCCS file s.test.c, enter: comb -p1.4 -s
s.test.c | sh To actually combine the deltas, enter: comb -p1.4 s.test.c | sh
FILES
Temporary files.
SEE ALSO
Commands: admin(1), cdc(1), delta(1), get(1), prs(1), rmdel(1), sact(1), sccs(1), sccsdiff(1), sccshelp(1), unget(1), val(1), what(1)
Files: sccsfile(4)
Programming Support Tools
comb(1)