Based on input1 specific key (column1, 4 and 5) take the values (column 2 and 3) overlap with input2. And Specify names based on output.
input1
input2
output
Naming
Quote:
if middle value is missing name them "SE"
if first value is missing name them "AFE"
if last value is missing name them "ALE"
if 2 middle values are missing name them "MXE"
if 1st value is shorter but still overlapping then name "A5SS"
if last value is shorter but stil overlapping then name "A3SS"
Hi everyone,
I posted this earlier, but the idea changed since then and I figured it would make more sense if I repost with a clearer idea in hopes someone can help me out.
I have two lists of data in file1 and file 2
file1 (tab separated - column1 column2 column 3)
1 91625106 ... (1 Reply)
Hello
I've got a script that creates multiple processes, in ksh, to bcp out 6 tables at a time. In the script, we write messages to the log to show our progress; most of the time, the log messages are nice and neat with one per line, like they should be. But every once in awhile, at random, the... (2 Replies)
for every specific $1,$2 check the values ($2,$3) of their E ot I of input1 and overlap with input2.
Specify names based on output.
#######
if middle value is missing name them "SE"
if first value is missing name them "AFE"
if last value is missing name them "ALE"
if 2 middle values are... (1 Reply)
Hi all,
New to this forum as well as the world of Veritas Volume Manager. My client is using VxVM 3.2. We just changed one of the disk which is under veritas control. I used the appropriate options in vxdiskadm to replace this failed disk. Now when I am trying to unrelocate subdisks back to the... (0 Replies)
I have just purchased a new server running RHELS R6 from a well known supplier. The OS came pre-installed so I (as a previous almost identical server) just finished off the install. I have just been extending one of the partitions and noticed an overlap.
Filesystem Size Used Avail... (5 Replies)
Hi,
I have a situation to compare one file, say file1.txt with a set of files in directory.The directory contains more than 100 files.
To be more precise, the requirement is to compare the first field of file1.txt with the first field in all the files in the directory.The files in the... (10 Replies)
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Hi,
I want to overlap two files based on two columns in each files. Here I'm overlapping the first two columns of the first file with columns 3 &4 of the second file (Bolded) to get the common lines.
File1
ESR1 1 15 ggtga
ESR1 7 18 tgcagt
FOXA1 3 10 gtgat
FOXA1 10 20 tgacc
File2... (1 Reply)
Hi Help,
I am trying to find a overlap zone by compraing th etwo files which is printed below.
File-1 is ---
1011 234
2967 787
235 900
435 654
File 2 is ---
1211 456
595 678
546 678
2967 787
I would like to have a o/p which just read 2967 787,'comm' doesn't seem to do the... (5 Replies)
Discussion started by: Indra2011
5 Replies
LEARN ABOUT SUNOS
strcadd
strccpy(3GEN) String Pattern-Matching Library Functions strccpy(3GEN)NAME
strccpy, streadd, strcadd, strecpy - copy strings, compressing or expanding escape codes
SYNOPSIS
cc [ flag ... ] file ... -lgen [ library ... ]
#include <libgen.h>
char *strccpy(char *output, const char *input);
char *strcadd(char *output, const char *input);
char *strecpy(char *output, const char *input, const char *exceptions);
char *streadd(char *output, const char *input, const char *exceptions);
DESCRIPTION
strccpy() copies the input string, up to a null byte, to the output string, compressing the C-language escape sequences (for example,
,
01) to the equivalent character. A null byte is appended to the output. The output argument must point to a space big enough to accommo-
date the result. If it is as big as the space pointed to by input it is guaranteed to be big enough. strccpy() returns the output argument.
strcadd() is identical to strccpy(), except that it returns the pointer to the null byte that terminates the output.
strecpy() copies the input string, up to a null byte, to the output string, expanding non-graphic characters to their equivalent C-language
escape sequences (for example,
, 01). The output argument must point to a space big enough to accommodate the result; four times the
space pointed to by input is guaranteed to be big enough (each character could become and 3 digits). Characters in the exceptions string
are not expanded. The exceptions argument may be zero, meaning all non-graphic characters are expanded. strecpy() returns the
output argument.
streadd() is identical to strecpy(), except that it returns the pointer to the null byte that terminates the output.
EXAMPLES
Example 1: Example of expanding and compressing escape codes.
/* expand all but newline and tab */
strecpy( output, input, "
" );
/* concatenate and compress several strings */
cp = strcadd( output, input1 );
cp = strcadd( cp, input2 );
cp = strcadd( cp, input3 );
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO string(3C), strfind(3GEN), attributes(5)NOTES
When compiling multi-thread applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in multi-
thread applications.
SunOS 5.10 29 Dec 1996 strccpy(3GEN)