I'm trying to create a perl script that will automatically fit the player's name to the formation.
For example, in my:
DR.txt
DC.txt
DL.txt
formation.txt:
My expected output from my formation.txt will be:
Any help?
Last edited by Tzeronone; 10-27-2014 at 07:16 AM..
Maybe I'm lost because I'm used to American football, but I don't understand the rules that are being used to create the output you are expecting from your four given input files.
Why does this need to be done using perl? Is this a homework assignment?
Maybe I'm lost because I'm used to American football, but I don't understand the rules that are being used to create the output you are expecting from your four given input files.
Why does this need to be done using perl? Is this a homework assignment?
For sure it is not homework assignment. From the formation.txt,
Because I believe PERL is efficient for text processing and I have around 3312 of formation.
Last edited by Tzeronone; 10-27-2014 at 07:21 AM..
https://www.unix.com/programming/252468-perl-script-create-football-formation.html https://www.unix.com/members/43551.html, it is not repeated question. please read it before u block my question. Unblock it for me. Thanks:mad: (0 Replies)
I need help to create varieties of football formation. The available positions are:
GK
SW
DR
DC
DL
WBR
DM
WBL
MR
MC
ML
AMR
AMC
AML
ST
But the conditions are:
a. the maximum number in 1 formation:
GK is 1
SW is 1 (1 Reply)
I have a data like as follows, I need to format it as shown in as below. Request you to help me here ?
I/P
aa|3|1
aa|4|2
bb|3|1
bb|4|1
cc|3|26
cc|4|1
O/P
aa|3|1|4|2
bb|3|1|4|1
cc|3|26|4|1
Thanks,
Srikanth (5 Replies)
Dear Experts,
I have a scenario where I have to form sql queries in a file using echo command.
I have file1 which has more than 10 lac numbers. For each Number in file 1, I need to create 5 sql queries resulting in 50 lac queries totally.
For doing this I use the below simple method,
for i... (5 Replies)
Dear All
I am facing below mention problem plz suggest me solution.
Op of date command:
> date
Tue Jan 1 12:17:52 IST 2008
Now i want Jan 1 12: or Jan 1 12 op in some another variable.
I had tried awk but if give me problem when there is date comes in 2 digit i.e. greater that 9.... (1 Reply)