Search Results

Search: Posts Made By: perl_beginner
938
Posted By perl_beginner
Help with keep the smallest record in file
Input file

US Score 10
UK Ball 20
AS Score 50
AK Ball 10
PZ Ballon 50
PA Score 70
WT Data 10
.
.

Desired output file

US Score 10
AK Ball 10
WT Data 10
.
.
612
Posted By perl_beginner
Help with split a list of records into each line with 200 coordinate at a time
Input File:

E 3359799 3360148 350 X
D 3471287 3471607 321 X
E 3359799 3360740 942 X
E 4359790 4360039 250 X
.
.
.

Desired Output File:

E 3359799 3359998 200 X
E 3359999 3360148 150 X...
1,316
Posted By perl_beginner
Thanks a lot and again, disedorgue. Really...
Thanks a lot and again, disedorgue.
Really appreciate for your help.

It worked perfect in my case now.
Thanks.
1,316
Posted By perl_beginner
Thanks a lot and again, disedorgue. Your awk...
Thanks a lot and again, disedorgue.
Your awk command work perfectly.
It given the same result as I run it one by one.

Is below the command if I would like to edit become every 50 and count its...
1,316
Posted By perl_beginner
Help with sum range of data set together
Input File:

2000 3
1998 2
1997 2
1994 1
1991 1
1989 1
1987 2
1986 2
1985 1
1984 1
.
.
10 277256
9 278274
8 282507
7 284837
6 ...
1,555
Posted By perl_beginner
Thanks, R. Singh. Your awk command work...
Thanks, R. Singh.

Your awk command work perfectly for my case :)

---------- Post updated at 03:09 AM ---------- Previous update was at 03:08 AM ----------

Hi RudiC,

You are right.
I just...
1,555
Posted By perl_beginner
Thanks, R. Singh. Let me have a try and get...
Thanks, R. Singh.
Let me have a try and get back to you soon :)

My method normally I will split the analysis into a lot of different step and output it one by one before getting final desired...
1,555
Posted By perl_beginner
Dear Robin, This is no home work/assignment....
Dear Robin,

This is no home work/assignment.
Basically it is just an output of a program.
But I'm interested to know it in further detail.

I can't think out a solution yet.
What I plan is:
...
1,555
Posted By perl_beginner
Help with calculate the total sum of record in column one
Input file:

101M
10M10D20M1I70M
10M10D39M4I48M
10M10D91M
10M10I13M2I7M1I58M
10M10I15M1D66M


Output file:

101M 101 0 0
10M10D20M1I70M 100 1 10
10M10D39M4I48M 97 4 10
10M10D91M 101 0...
1,190
Posted By perl_beginner
Thanks again, R. Singh :) I just do a few...
Thanks again, R. Singh :)

I just do a few manual checking.
It seems worked perfectly with all the different case and scenario :)

Really many thanks for your fast advice and sharing.
...
1,190
Posted By perl_beginner
Hi RudiC, Yup. You're right. So sorry...
Hi RudiC,

Yup. You're right.
So sorry about that.

I just edit my thread.
1,190
Posted By perl_beginner
Help with reformat/transpose word
Input File

SAFAS 6000 5
ASGAFAWQ 6022 8
SGAFAWQ 6023 7
GGC 16023 3
.
.

Output File

S 6000
A 6001
F 6002
A 6003
S 6004
A 6022
S 6023
G 6024
A 6025
1,373
Posted By perl_beginner
Thanks, RudiC. It solve my inquiry regarding...
Thanks, RudiC.
It solve my inquiry regarding more than 1 N at different position at first column data :)

Many thanks and again.
1,373
Posted By perl_beginner
Thanks a lot and very much, R. Singh. It worked...
Thanks a lot and very much, R. Singh.
It worked perfectly now :)

---------- Post updated at 02:12 AM ---------- Previous update was at 01:44 AM ----------

Hi R. Singh,

Sorry again for...
1,373
Posted By perl_beginner
Hi R. Singh, thanks again for your prompt reply...
Hi R. Singh, thanks again for your prompt reply and help :)

I try your awk command with other record, it seems no work.
I believe is due to split("ATC:C:TCGCG:G", array,":") which is different...
1,373
Posted By perl_beginner
Help with compare 2 column content and corrected/replaced word
Input File

CGGCGCCTCGCNNNCGAGCG CGGCGCGCCGAATCCGTGCG
TCGCNGC GCGCCGC
ACGGCNNNNN ACGGCCTCGCG
CGGCNGCCCGCCC CGGCGCGCCGTCC

Desired Output File

CGGCGCCTCGCNNNCGAGCG ...
1,246
Posted By perl_beginner
Thanks to solve my doubt :) ---------- Post...
Thanks to solve my doubt :)

---------- Post updated at 10:20 PM ---------- Previous update was at 10:20 PM ----------

Thanks a lot :)
1,246
Posted By perl_beginner
Help with sort First Column followed by Second Column
Input file:

DN63688_c0_g1 DN63688_c0_g1_i1
DN71_c0_g1 DN71_c0_g1_i1
DN63688_c0_g1 DN63688_c0_g1_i2
DN63688_c0_g1 DN63688_c0_g1_i3
DN63688_c0_g1 DN63688_c0_g1_i7
DN134_c0_g1 ...
8,098
Posted By perl_beginner
Help with Round Up with 2 decimal point at specific column
Input file:

USA 20.5683
UK 3.54221
Japan 2.54001
China 2.50897
Germany 2.05816
.
.

Desired output file:

USA 20.57
UK 3.54
Japan 2.54
China 2.51
Germany 2.06
.
.
941
Posted By perl_beginner
Help with sort only column 2 data separately
Input File

Contig_1_294435nt 242231 242751
Contig_1_294435nt 242390 242782
Contig_1_294435nt 242390 242782
Contig_1_294435nt 291578 291668
Contig_2_242278nt ...
1,218
Posted By perl_beginner
Thanks again, Singh :) It worked perfect ^.^ ...
Thanks again, Singh :)
It worked perfect ^.^

---------- Post updated at 10:18 AM ---------- Previous update was at 10:18 AM ----------

Thanks, RudiC.
Again you help me a lot :)

Really many...
1,218
Posted By perl_beginner
Help with merge row if share same column info
Input file:

32568 SSO7483
32568 SSO7486
117231 SSO1293
117231 SSO1772
178081 SSO3076
178081 SSO3077
222417 porA-2
222417 porB-2
263778 ...
4,144
Posted By perl_beginner
You guy are awesome and very experience in coding...
You guy are awesome and very experience in coding :)
Many thanks.

It really help me a lot ^.^

---------- Post updated at 09:12 AM ---------- Previous update was at 09:12 AM ----------
...
4,144
Posted By perl_beginner
Help with generate a pair of random number
Hi,

Is anybody experience generate a pair of random number by using awk command?
I wanna to generate a pair of random number (range from 1 to 4124) and repeats it 416 times.

Desired output
...
1,671
Posted By perl_beginner
You are awesome :) It worked perfectly now ^.^
You are awesome :)
It worked perfectly now ^.^
Showing results 1 to 25 of 191

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