Search Results

Search: Posts Made By: pathunkathunk
3,647
Posted By pathunkathunk
That does the job, thank you! (I was reading...
That does the job, thank you!

(I was reading quickly and skipped over your solution thinking it was just a quote from the previous message.)
3,647
Posted By pathunkathunk
Yes that's right. That's a better way of saying...
Yes that's right. That's a better way of saying it.
So if input is:
comp51820_c1_seq1 405 N 0:29:0:0:0:0 0:51:0:0:0:0 0:57:0:0:0:0 0:6:0:0:0:0 0:37:0:0:0:0
comp51820_c1_seq1 ...
3,647
Posted By pathunkathunk
This works to exclude the correct lines, but it...
This works to exclude the correct lines, but it also excludes a line that should be accepted (since the five sums (one from each column) are all >= 8). Desired output is:...
3,647
Posted By pathunkathunk
This works for the example file, but when I try...
This works for the example file, but when I try it with my larger file there are some issues. For example if these lines are the input:...
3,647
Posted By pathunkathunk
Thank you, this works. Would you mind also...
Thank you, this works. Would you mind also showing how I would do it if I did not want to exclude the fifth value? So just print lines where the sum of ALL values in each of columns 4-8 is at least...
3,647
Posted By pathunkathunk
If I'm not mistaken, this seems to print all...
If I'm not mistaken, this seems to print all files with at least one value >=8. I get the output:
comp51820_c1_seq1 44 N 0:0:4:0:3:1 0:0:1:9:0:0 10:0:0:0:0:0 0:3:3:2:2:6 2:2:2:5:60:3...
3,647
Posted By pathunkathunk
Sum specified values (columns) per row
Hello out there,

file.txt:
comp51820_c1_seq1 42 N 0:0:0:0:0:0 1:0:0:0:0:0 0:0:0:0:0:0 3:0:0:0:0:0 0:0:0:0:0:0
comp51820_c1_seq1 43 N 0:0:0:0:0:0 0:1:0:0:0:0 0:0:0:0:0:0 0:3:0:0:0:0 0:0:0:0:0:0...
Showing results 1 to 7 of 7

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