10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am having 2 files like this
what i want do is like this
i want to put all the contents for file 2 after file 1,means adding column in file1 (5 Replies)
Discussion started by: sagar_1986
2. UNIX for Dummies Questions & Answers
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
Discussion started by: dsfreddie
3. Shell Programming and Scripting
hi, i have a list of file:
KB0016 KB231543... (2 Replies)
Discussion started by: karla
4. UNIX for Dummies Questions & Answers
I have two list I wanna combine and print them together in the output depending if they have the same rsid:
ENST00000262042 rs47 583 N D
ENST00000408005 rs48 583 N D
ENST00000311322 rs268 318 N S
rs34 CHB T 1 C 0 T/T C/T C/C 1 0 0
rs47 JPT T 1 C 0 T/T C/T C/C 1 0 0
rs48... (6 Replies)
Discussion started by: karla
5. UNIX for Dummies Questions & Answers
I have 2 files:
Filename1 10296 xxx Date: 09/01/08
Filename2 10296 xxx Date: 09/05/08... (36 Replies)
Discussion started by: rock1
6. Shell Programming and Scripting
I have a file in DirA/ABC.out a need to move to DirB.I am using the following steps now:
mv DirA/ABC.out DirB
compress -f DirB/ABC.out
Is there a way to just do this one step as I have to move hundreds of files every hour.
-Thanks in advance. (4 Replies)
Discussion started by: sam_78_nyc
7. Shell Programming and Scripting
I have two files and I need to combine (not append - but combine a row to a row)
After combining, the file should look like: (the second column should start at a specific byte)
grapes green... (7 Replies)
Discussion started by: hemangjani
8. Shell Programming and Scripting
Could someone help me reduce the number of runs for a shell program I created?
I have two text files below:
$ more list1.txt
$ more list2.txt
I want to combine the lines with the same number to get the below:
01 AAA 01 EEE
02... (4 Replies)
Discussion started by: stevefox
9. UNIX for Dummies Questions & Answers
is there a way to combine 2 files together, joining line 1 from file A with line 1 from file B, line 2 from A with line 2 from B etc.
File A File B
Combined result =
36 (2 Replies)
Discussion started by: Enda Martin
10. UNIX for Dummies Questions & Answers
how will i combine these 2 files below, with the desired output
ddd (3 Replies)
Discussion started by: apalex
sccs-comb(1) User Commands sccs-comb(1)
sccs-comb, comb - combine SCCS deltas
/usr/ccs/bin/comb [-os] [-csid-list] [-psid] s.filename...
comb generates a shell script (see sh(1)) that you can use to reconstruct the indicated s.files. This script is written to the standard
If a directory name is used in place of the s.filename argument, the comb command applies to all s.files in that directory. Unreadable
s.files produce an error; processing continues with the next file (if any). The use of `-' as the s.filename argument indicates that the
names of files are to be read from the standard input, one s.file per line.
If no options are specified, comb preserves only the most recent (leaf) delta in a branch, and the minimal number of ancestors needed to
preserve the history.
The following options are supported:
-o For each `get -e' generated, access the reconstructed file at the release of the delta to be created. Otherwise, the recon-
structed file is accessed at the most recent ancestor. The use of -o may decrease the size of the reconstructed s.file. It
may also alter the shape of the delta tree of the original file.
-s Generate scripts to gather statistics, rather than combining deltas. When run, the shell scripts report: the file name,
size (in blocks) after combining, original size (also in blocks), and the percentage size change, computed by the formula:
100 * ( original - combined ) / original
This option can be used to calculate the space that will be saved, before actually doing the combining.
-csid-list Include the indicated list of deltas. All other deltas are omitted. sid-list is a comma-separated list of SCCS delta IDs
(SIDs). To specify a range of deltas, use a `-' separator instead of a comma, between two SIDs in the list.
-pSID The SID of the oldest delta to be preserved.
s.COMB reconstructed SCCS file
comb????? temporary file
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWsprot |
sccs(1), sccs-admin(1), sccs-cdc(1), sccs-delta(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), sccs-sccsdiff(1), what(1), sccs-
Use the SCCS help command for explanations (see sccs-help(1)).
comb may rearrange the shape of the tree of deltas. It may not save any space; in fact, it is possible for the reconstructed file to actu-
ally be larger than the original.
SunOS 5.10 1 Nov 1999 sccs-comb(1)