Each of the files consisted of 7 columns: the first three columns are the same in each file and the other 4 columns are the actual data (but we need to use only the last three of those). The merging would mean to keep the first three columns and then add the the last three columns of each file matched by the first column. For example, infile1 could be
infile2 could be:
infile3 could be
then the after the merging step1, the outfile1 would look like like this:
then after adding infile3, the outfile2 would look like this:
I hope this clears things up.
Many thanks!
Last edited by vbe; 08-20-2016 at 10:54 AM..
Reason: code tags please not icode
This site has been very helpful thus far.. I thank you all in advance for sharing the knowledge. Let me get to it.
I am trying to write a very small script to take away from the boredom of doing the same thing over and over.
Everynow and again I have to get the hex value of a file using a... (2 Replies)
Hi,
I am having an Input file .which is having a list of names.
comapring with our database , needs to write the out put in file called output.txt , format should be name--> country--->phone number
could you please help me..
thanks in advance (7 Replies)
Hi there
could anybody point me in the right direction when it comes to looping through the output of a system command in perl (i.e. df -k) doing a test against each line to see if it matches?
for example if i have a df -k output like this and I wanted to grab the lines that matched "sda" or... (3 Replies)
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Hi friends,
I'm newbie to SVM.
Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :(
the steps i've taken is as below:-
1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Legends,
I want to remain in the script until user passes the correct name.
I had tried the below code; but it didn't work out.
Please help
echo "\nPlease enter the source system: \c"
while read SYSTEM_NAME
do
if ];
then
echo "\nMaking $SYSTEM_NAME as source system for particular... (5 Replies)
I have been trying this program for a long time. I am trying to read a file named "odon" line by line; read the first line, send it to do a command saved in a file "perm", once the first line has finished going through the content of the file perm, the result is saved with the number of the line.... (17 Replies)
Hi all,
I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name, but it doesn't work. Thanks for any help.
fnam=(japan usa uk)
alldata.dat contained sample data... (1 Reply)
Hi,
I have some output from 'ls' command and I want to loop over the output in a bash script. What would be a good way to go about it?
For example, if the output of the ls command gives me 'prefix1 prefix2 prefix3', how can I set a loop that will iterate over these?
many thanks! (5 Replies)
Discussion started by: pc2001
5 Replies
LEARN ABOUT ULTRIX
comb
comb(1) General Commands Manual comb(1)Name
comb - combine delta versions of SCCS file
Syntax
comb [-o] [-s] [-psid] [-clist] files
Description
The command generates a shell procedure which, when run, will reconstruct the given SCCS files. For further information, see The recon-
structed files are generally smaller than the original files. The arguments may be specified in any order, but all keyletter arguments
apply to all named SCCS files. If a directory is named, behaves as though each file in the directory were specified as a named file,
except non-SCCS files (last component of the path name does not begin with s.) and unreadable files, which are silently ignored. If a
name of - is given, the standard input is read; each line of the standard input is taken to be the name of an SCCS file to be processed.
The generated shell procedure is written on the standard output.
Each keyletter argument is explained as though only one named file is to be processed, but the effects of any keyletter argument apply
independently to each named file.
Options-clist Preserves specified deltas. See for the syntax of a list. All other deltas are discarded.
-o Causes the reconstructed file to be accessed at the release of the delta to be created. Otherwise the reconstructed file would
be accessed at the most recent ancestor. Use of the -o keyletter may decrease the size of the reconstructed SCCS file. It may
also alter the shape of the delta tree of the original file.
-pSID Indicates oldest delta to be preserved. All older deltas are discarded in the reconstructed file.
-s Generates a shell procedure which produces a report. This report gives the file name, size (in blocks) after combining, original
size (also in blocks), and percentage change computed by:
100 * (original - combined) / original
It is recommended that before any SCCS files are actually combined, one should use this option to determine exactly how much
space is saved by the combining process.
If no keyletter arguments are specified, will preserve only leaf deltas and the minimal number of ancestors needed to preserve the tree.
Restrictions
The command 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 actually be larger than the original.
Diagnostics
See for explanations.
Files
s.COMB The name of the reconstructed SCCS file.
comb????? Temporary.
See Alsoadmin(1), delta(1), get(1), help(1), prs(1), sccs(1), sccsfile(5)
Guide to the Source Code Control System
comb(1)