Search Results

Search: Posts Made By: Lucky Ali
1,744
Posted By Lucky Ali
Thanks..I will try to solve it. I learned so many...
Thanks..I will try to solve it. I learned so many things from this forum
1,744
Posted By Lucky Ali
That was based on the smallest occurrence. But...
That was based on the smallest occurrence. But here I need the count of the alphabet that is different of the first one. It is not necessary that the different alphabet will have the smallest...
1,744
Posted By Lucky Ali
How do I modify the above code so that it would...
How do I modify the above code so that it would count the occurrence of the alphabet that is different from the first alphbet in each of the lines and output the position number/ numbers of that...
2,699
Posted By Lucky Ali
I think it worked. It didn't give any error...
I think it worked. It didn't give any error messages. Thank you very much
2,699
Posted By Lucky Ali
Great. Thank you it worked edit by bakunin:...
Great. Thank you it worked

edit by bakunin: good! I changed the threads title to "solved".

---------- Post updated at 04:18 PM ---------- Previous update was at 01:56 PM ----------

Actually...
2,699
Posted By Lucky Ali
This what I get (i have diferent names for file1...
This what I get (i have diferent names for file1 and file 2)


awk 'NR==FNR {F[$1]=$2; R[$1]=$3; next}
{for (i=1; i<=NF; i++) if ($i == F[++CNT]) $i=R[CNT]}
...
2,699
Posted By Lucky Ali
I am getting the same file1 as output with out...
I am getting the same file1 as output with out the edits. Am I missing some thing
2,699
Posted By Lucky Ali
That is where i am not able to proceed. On thing...
That is where i am not able to proceed. On thing in the real file that I am using to edit has exactly 60 alphabet in each line.
2,699
Posted By Lucky Ali
Counts don't go for each line. It starts from...
Counts don't go for each line. It starts from position 1 and goes continuously to the end of the file. It is not counted separately for each line. Hope this makes it clearer. I tried to put in it all...
2,699
Posted By Lucky Ali
No it doesn't have a length of 66. In the second...
No it doesn't have a length of 66. In the second file, file2 shows the position on file1 where the edits has to be done. The actual file have 1000's of letters. Hope this helps
2,699
Posted By Lucky Ali
[Solved] Editing the alphabet's based on position information
I do have a file of the following format

file 1

>SAM
ATGCTCCTTAGCTACGTAGCAAGTAGAAAAAA
AGCGCGAGCATTGAAGCGGAGGAGAGGAGGA
TGAGATGATGACCCAGTATAAAGAGTGATGAT



like this above file. file 1 has...
1,744
Posted By Lucky Ali
Alphabet counting
Thanks That worked.
I would like to get another awk solution. I have a file with the following format


CCCCCGCCCCCCCCCCcCCCCCCCCCCCCCCC
AAAATAAAAAAAAAAAaAAAAAAAAAAAAAAA...
1,744
Posted By Lucky Ali
Getting the non-homogenous letter row from a text file
I do have a large tab delimited file with the following format


CCCCCGCCCCCCCCCCcCCCCCCCCCCCCCCCC 23 65 3 4
AAAAAAAAAAAAAAAAaAAAAAAAAAAAAAAAA 24 6 89 90
TGTTTTTTTTTTTTGGtTTTTTTTTTTTTTTTT 2 4 8...
987
Posted By Lucky Ali
Thanks, but it won't help. I have many files to...
Thanks, but it won't help. I have many files to join
987
Posted By Lucky Ali
Joining
I do have many files of the following format.

File_1.txt

1 24
2 25
3 27
4 28
5 29
6 1

File_2.txt

2 5
3 8
4 9
5 10

File_3.txt
1,151
Posted By Lucky Ali
Disruption of consecutive numbers
I do have a tab delimited file with the following format


200 46
201 67
204 89
205 98
206 89
208 890
210 23
..
...

100's of rows



I would like to output the missing consecutive...
1,238
Posted By Lucky Ali
Sequential counting
Hi have a file of the following format

a1
a1
a2
a2
a4
a4
a4
a3
a3
a5
a6
a6
a6
a6
..

100's of lines
3,000
Posted By Lucky Ali
That worked. Thanks bipinajith
That worked. Thanks bipinajith
3,000
Posted By Lucky Ali
mac and a linux
mac and a linux
3,000
Posted By Lucky Ali
don't have access to solaris
don't have access to solaris
3,000
Posted By Lucky Ali
I am getting a syntax error in line 5 awk:...
I am getting a syntax error in line 5

awk: syntax error at source line 5
context is
for (i=0; i<=11; i++) printf >>> i== <<<
awk: illegal statement at source line 5
awk: illegal...
3,000
Posted By Lucky Ali
Converting text file in a matrix
Hi All,

I do have a file with many lines (rows) and it is space delimited. For example: I have a file named SR345_pl.txt. If I open it in an editor, it looks like this:


adfr A2 0.9345
dtgr/2...
983
Posted By Lucky Ali
Greping values from a text file
Hi All,
I have 100's of files in the following format. I need to grep or parse out some values from each of the files


{

 “tree”: “((A:0.2{0},B:0.09{1}):0.7{2},C:0.5{3}){​4};”,
...
886
Posted By Lucky Ali
Sequential extraction of first row
I do have a large text file (tab delimited) of the following format



RT_1 34 67
RT_1 9 10
RT_1 98 56
RT_2 09 89
RT_2 23 45
RT_2 90 76
RT_3 98 21
RT_4 23 90
RT_4 67 90
RT_4 79 23...
1,555
Posted By Lucky Ali
incorporating a regular expression statement in a shell script (.sh)
I do have a shell file where I call many unix commands . I would like to add a regular expression step in that shell file, where a text file, say Test.txt has to be openned and all the :'s should be...
Showing results 1 to 25 of 174

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