Hi,
I am a newbie in unix programming so maybe this is a simple question.
I would like to know how can I make a script that outputs only the values that are not between any given start and end positions
Example
file1:
2 30
40 80
82 100
file2:
ID1 1
ID2 35
ID3 80
ID4 81
ID6 160... (1 Reply)
I am attempting to replace positions 44-46 with YYY if positions 48-50 = XXX.
awk -F "" '{if (substr($0,48,3)=="XXX") $44="YYY"}1' OFS="" $filename > $tempfile
But this is not working, 44-46 is still spaces in my tempfile instead of YYY. Any suggestions would be greatly appreciated. (9 Replies)
Hi,
I would like to know how can I get all the positions of a letter, let say letter C in a text file.
sample input file:
hcck
pgog
hlhhc
desired output file:
2
3
13
Many thanks! (2 Replies)
Hi,
I cannot figure out how to input a greater than command for a item of data that may be in two different positions.
my input file looks like this.
isup,isupmap,2011,05,10
isup,isupmap,2011,05,11
isup,isupmap,2011,05,12
pcap,2011,05,10
pcap,2011,05,11
pcap,2011,05,12
You will see... (2 Replies)
Hi.. i have two files one with positions information and another is sequence information. Now i need to read the positions and take the snps at the positions and replace that position base with the snp information in the sequence and write it in the snp information file.. for example
Snp file... (6 Replies)
Hi I have 2 files; usually the end position in the file1 is the start position in the file2 and the end position in file2 will be the start position in file1 (flanks)
file1
Id start end
aaa1 0 3000070
aaa1 3095270 3095341
aaa1 3100822 3100894
aaa1 ... (1 Reply)
Hi all, I have column 2 full of values like HIVE4A-56 and HIVE4-56. I want to convert all values like HIVE4A-56 to HIVE4-56.
So basically I want to delete all single alphabets before the '-' which is always preceded by a number. Values already in the desired format should remain unchanged... (4 Replies)
I have two text files as shown below
cat file1.txt
Id leng sal mon
25671 34343 56565 5565
44888 56565 45554 6868
23343 23423 26226 6224
77765 88688 87464 6848
66776 23343 63463 4534
cat file2.txt
Id number
25671 34343
76767 34234
23343 23423
66776 23343 (4 Replies)
Discussion started by: halfafringe
4 Replies
LEARN ABOUT SUNOS
mlib_signalsplit_s16_s16s
mlib_SignalSplit_S16_S16S(3MLIB) mediaLib Library Functions mlib_SignalSplit_S16_S16S(3MLIB)NAME
mlib_SignalSplit_S16_S16S - split
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalSplit_S16_S16S(mlib_s16 *ch0, mlib_s16 *ch1, const mlib_s16 *src, mlib_s32 n);
DESCRIPTION
The following function splits a stereo signal array into two signal arrays.
PARAMETERS
The function takes the following arguments:
ch0 Destination signal array of Channel 0.
ch1 Destination signal array of Channel 1.
src Source stereo signal array. src[2*i] contains Channel 0, and src[2*i+1] contains Channel 1.
n Number of samples in the source signal array.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_SignalMerge_S16S_S16(3MLIB), attributes(5)SunOS 5.10 9 Nov 2004 mlib_SignalSplit_S16_S16S(3MLIB)