Search Results

Search: Posts Made By: amits22
1,246
Posted By amits22
amazing, never thought it could be used this way
Here is a simple brute force awk script that I think does what you want:
awk '
FNR == NR {
for(i = ($2 + 1); i <= ($2 + 30); i++) r1to30[i]
r10[$2 + 10]
next
}
$4 in...
1,246
Posted By amits22
Hi Don, sorry for not being clear. 1. Sorry...
Hi Don, sorry for not being clear.
1. Sorry that was a sloppy way of showing sample data :o. It now has 4 columns

2. and 3. I need to compare all the rows of column 4 with all the rows of column...
1,246
Posted By amits22
Comparing all lines in a column with another is condition is met
Sorry for this noob question,
I have file with 4 columns like where columns 2 and 4 have numbers


a 55 k 3
b 59 l 3
c 79 m 277
d 255 n 277
e 257 o 267
f 267 p 287
g 290 q 287
h 290 r...
2,317
Posted By amits22
Thank you, very clever and concise. Sorry, I...
Thank you, very clever and concise. Sorry, I could not understand, if this A[i OFS $i]++ is creating another array.
2,317
Posted By amits22
Thank you so much RudiC, didn't know about this...
Thank you so much RudiC, didn't know about this trick {freq[$i,i]++; Base[$i]}
I understand its taking your time, could I request you to explain above part a bit.

Best,

Amit
2,317
Posted By amits22
Counting characters at each position
Hi All, here's a question from newbie

I have a data like this, which set of small DNA sequences separated by new line

GAATCCGGAAACAGCAACTTCAAANCA
GTNATTCGGGCCAAACTGTCGAA...
1,728
Posted By amits22
Thank you So much Scrutinizer, this works...
Thank you So much Scrutinizer, this works flawless. I got the loop but Could I ask you to please explain this part if ($i) $i+=$1}1 to me, thank you for your time

---------- Post updated at 07:01...
1,728
Posted By amits22
Finding value bigger than zero in all columns
Hi everybody,
I am a complete novice and please forgive if its answered gazillion times

I have a file which looks like this
1 0 2 0 0 0 0 0
0 3 0 1 18 2 ...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 09:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy