Search Results

Search: Posts Made By: DerSeb
1,888
Posted By DerSeb
I'm not used to perl, but this works nicely....
I'm not used to perl, but this works nicely. Thanks!
1,888
Posted By DerSeb
Using and passing arguments to shuf within awk
Hello all,

I would like to output a random number within a range for every line using awk and shuf. I think I'm almost there, but I don't know how to pass arguments to shuf within my awk script:
...
1,562
Posted By DerSeb
No, it's not selecting lines 2 to 4. It...
No, it's not selecting lines 2 to 4.

It means start at line 2 (included) and from there select every fourth line. At least that's what I hope it does ;)

Therefor it should process all lines...
1,562
Posted By DerSeb
Matching numbers of characters in two lines
Dear all,

I'm stuck on a certain problem regarding counting the number of characters in one line and then adjusting the number of characters of another line to this number.

This was my original...
3,572
Posted By DerSeb
Wow, you were all really fast. yes, the file...
Wow, you were all really fast.

yes, the file is sorted.

Thx all, the scripts work great!
3,572
Posted By DerSeb
AWK : Add Fields of lines with matching field
Dear All,

I would like to add values of a field, if the lines match in a certain field. Then I would like to divide the sum though the number of lines that have a matched field. This is the Input:...
4,797
Posted By DerSeb
Thanks for your replies. Using awk...
Thanks for your replies. Using
awk 'NR==FNR{T[NR]=length($1);next}
{if (FNR%2) {print $0}
else {{for (i=1;i<T[FNR];i++) printf "%s ",$i}; printf "\n"}
}' file1 file2
...
4,797
Posted By DerSeb
Wow, thanks for the quick response and your...
Wow, thanks for the quick response and your program.

However, I still have some problem. First it seems to take a lot of memory (Input files are about 4 Gb each), but I got it running assigning...
4,797
Posted By DerSeb
Sure, My input is file1 and file2 above. ...
Sure, My input is file1 and file2 above.

They are both sorted and have the same number of lines.

Now I want to create an output-file that is the same as file2, but has the same amount of...
4,797
Posted By DerSeb
help: Awk to control number of characters per line
Hello all,

I have the following problem:

My input is two sorted files:

file1
>1_19_130_F3
T01220131330230213311013000000110000
>1_23_69_F3
T01200211300200200010000001000000
>1_24_124_F3...
1,636
Posted By DerSeb
Counting non empty fields and calculating with that number
Hello all,

I have a problem with a skript of mine:

My input has the following format

1,33296 transcript_id"ENSRNOT00000018629" 0 1,33296 0
0 transcript_id"ENSRNOT00000029014" 0
0,907392...
3,893
Posted By DerSeb
Comparing two files and count number of lines that match
Hello all,

I always found help for my problems using the search option, but this time my request is too specific. I have two files that I want to compare. File1 is the index and File2 contains the...
Showing results 1 to 12 of 12

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