Search Results

Search: Posts Made By: TheTransporter
1,676
Posted By TheTransporter
hey Yoda, Thanks for the reply. I...
hey Yoda,

Thanks for the reply.

I tested the code and works nicely!
1,676
Posted By TheTransporter
Hello ctsgnb, It does not give any output...
Hello ctsgnb,

It does not give any output...
1,676
Posted By TheTransporter
Hey admin, Thanks for the interest. I...
Hey admin,

Thanks for the interest.

I have written the following code that works, but it significantly slow.

calling ./counter.sh


#!/bin/bash
awk '{print $1}' $1 > 1.txt
awk...
1,676
Posted By TheTransporter
Add numbers in third code with conditions on the 1st and 2nd
Hello all,

I have a file with three columns, in which the first column has one letter from A-Z, the second one letter from A-Z, and the third a number:
e.g.
A A 5
A B 6
A C 1
A D 7
B A 8
...
1,519
Posted By TheTransporter
thank you guys I will give a look into all of...
thank you guys I will give a look into all of them!

Seems that they work fine
1,519
Posted By TheTransporter
Adding missing lines in file
Dear all,

I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present.

Sample:


...
1,180
Posted By TheTransporter
Adding missing lines in file
Dear all,

I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present.

Sample:

...
1,670
Posted By TheTransporter
the code is functional and extremely fast!...
the code is functional and extremely fast! Although I get the idea, still I couldn't write it! Will look into it.

Thanks Scrutinizer.
1,670
Posted By TheTransporter
Yes, in the second field TIP is there. if a...
Yes, in the second field TIP is there.

if a field is absent, either entries ending in _A or in _B will be missing.

So the program can read the line with the missing information (has two...
1,670
Posted By TheTransporter
this code is doing the job well for the third...
this code is doing the job well for the third column, but is screwing the first one...
output:

PHE_205_A TIP_127_W ARG_150_B
MET_1150_A TIP_12_W VAL_11_B
GLU_60_A TIP_130_W ...
1,670
Posted By TheTransporter
Filling a tab-separated file with known missing entries in columns
Hello all,

I have a file which is tab separated like that:


PHE_205_A TIP_127_W ARG_150_B
MET_1150_A TIP_12_W VAL_11_B
GLU_60_A TIP_130_W ARG_143_B
LEU_1033_A ...
2,393
Posted By TheTransporter
nice code and clear. Thanks a lot!
nice code and clear. Thanks a lot!
2,393
Posted By TheTransporter
Hello Corona, 1) yes, row-column-value. ...
Hello Corona,

1) yes, row-column-value.
2) yes, their order is always like that
3) each is one word, composed of 3 letters.
4) yes, each file has 400 lines, meaning that the ending matrix...
2,393
Posted By TheTransporter
tab-separated file to matrix conversion
hello all,

i have an input file like that

A A X0
A B X1
A C X2
...
A Z Xx
B A X1
B B X3
....
Z A Xx
Z B X4

and i want to have an output like that

A B C D
A X0 X1 X2 Xy
B...
8,258
Posted By TheTransporter
no, it is a negative number, just it does not...
no, it is a negative number, just it does not have zero after the minus sign. So it is not the lower number.

Bartus, thanks a lot. I will try it.

Cheers
8,258
Posted By TheTransporter
remove duplicate lines based on two columns and judging from a third one
hello all,

I have an input file with four columns like this with a lot of lines



and for example, line 1 and line 5 match because the first 4 characters match and the fourth column matches...
1,924
Posted By TheTransporter
wow! that was quick! Thank both fro the scripts -...
wow! that was quick! Thank both fro the scripts - although bartus' script is a bit faster, radoulov's script is more understandable by me!

thank you both guys i appreciate it a lot, and i really...
1,924
Posted By TheTransporter
print every 20 lines the lowest number
Hello all,

How can I find the lowest number every 10 lines? For example i have a list

name1
-0.1
name2
2
name3
3
name4
-3
name5
1
name6
2
name7
34
name8
34
1,742
Posted By TheTransporter
thanks Bartus, I thought it is not needed for...
thanks Bartus, I thought it is not needed for this specific program. I will start my job again and let you know

Thanks!

---------- Post updated at 11:06 AM ---------- Previous update was at...
1,742
Posted By TheTransporter
cron job and running program
Dear experts,
I have this cronjob
* */2 * * * $path/supervisor.sh The supervisor script is checking another script, which initializes the final scripts in multiple directories.

Note that the...
1,475
Posted By TheTransporter
ok, you are right. The files are as these: ...
ok, you are right.
The files are as these:

input.txt:

>P1;baDHFR
structureX:baDHFR: 1: A:999 : B::::
MAAQGEPQVQFKLVLVGDGGTGKTTFVKRHLTGEFEKKYVATLGVEVHPLVFHTNRGPIKFNVWDTAGQEKFGGLRD...
1,475
Posted By TheTransporter
Stripping characters from a file and reformatting according to another one
Dear experts,
my problem is pretty tricky.
I want to change a file (see attached input.txt), according to another file (help.txt). The output that is desired is in output.txt. The example is...
3,066
Posted By TheTransporter
this is magic! Thanks, bartus! This is exactly...
this is magic! Thanks, bartus! This is exactly what I wanted!
if you have time, can you please explain me the script?
thanks again man!
3,066
Posted By TheTransporter
that's because we come from different...
that's because we come from different disciplines! :)

I have a short example with a readme file attached to this post as you have suggested... Hope it helps more, and we can understand each...
3,066
Posted By TheTransporter
the thing is that, if the files are cat, then i...
the thing is that, if the files are cat, then i lose information about where the entries previously were (file 1 or file 2).
So, I would like to have matches only between entries from A and B...
Showing results 1 to 25 of 30

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