Search Results

Search: Posts Made By: a_bahreini
1,817
Posted By a_bahreini
Thanks, it worked
Thanks, it worked
1,817
Posted By a_bahreini
Rename files based on a list
Hi,
I have a directory with a lot of files like this:
a.bam
b.bam
c.bam

I like to rename these files based on a list where the name of the files in the first column will be replasced by the...
3,771
Posted By a_bahreini
That works pretty well. Thanks
That works pretty well.
Thanks
3,771
Posted By a_bahreini
Please see the attachment. You can take either as...
Please see the attachment. You can take either as the first file and the other as the second
Thanks
3,771
Posted By a_bahreini
Yeah that's because I'm only showing the first 10...
Yeah that's because I'm only showing the first 10 lines. There are matches if I go down. Is there a way I can send you the files? Each of them has thousands lines.
Thanks
3,771
Posted By a_bahreini
hmmm, that's weird! There might be something...
hmmm, that's weird! There might be something wrong with my files. This is the first ten lines for each file.
File
PROPRIETARYNAME^IPHARM_CLASSES$...
3,771
Posted By a_bahreini
Thanks for your response but I don't think it's...
Thanks for your response but I don't think it's working. It actually prints everything in the file 2. BTW, I had to replace "space" in my columns with "underline" since the space messes up the column...
3,771
Posted By a_bahreini
Intersection by part of the string
Hi,
I like to intersect two files based on their first columns. Here is the code which does the trick for me:
awk 'NR==FNR{A[$1];next}$1 in A' file1 file2
However, this only looks for exact...
4,424
Posted By a_bahreini
The problem was that I had too many columns
The problem was that I had too many columns
4,424
Posted By a_bahreini
It worked after all. Thanks for your help Don...
It worked after all. Thanks for your help Don Cragun
4,424
Posted By a_bahreini
Well, this is going to sort the whole file. I...
Well, this is going to sort the whole file. I want to sort the columns on their own.
4,424
Posted By a_bahreini
Ok, let's make this simple. Here is two columns...
Ok, let's make this simple. Here is two columns of my file:
2|3|40|50 21|32|60|70
12|40|30|60 34|21|50|80
43|33|20|21 54|23|70|56
Here I sort each column based on the third number (bold...
4,424
Posted By a_bahreini
Sorry if I didn't explain enough. My file has 41...
Sorry if I didn't explain enough. My file has 41 fields and 60 rows. I have only inputed two rows and two columns in my last post. I don't want to sort based on a particular field but I'd like to...
4,424
Posted By a_bahreini
[Solved] Sort each column independently
Hi,
I have a file full of this fields and rows:
0.269330|0.035118|0.526763|0.792274 0.33555|19.471911|51.844968|1631 ...
3.981490|5.062725|17.190744|111 ...
5,530
Posted By a_bahreini
An Apostrophe was also missing after Awk but it...
An Apostrophe was also missing after Awk but it finally worked :)
5,530
Posted By a_bahreini
No I put it in the code
No I put it in the code
5,530
Posted By a_bahreini
The output is blank!
The output is blank!
5,530
Posted By a_bahreini
Great, thanks for your help ---------- Post...
Great, thanks for your help

---------- Post updated at 07:32 PM ---------- Previous update was at 05:55 PM ----------

Sorry Ahamad to bug you again but I have one more request. This scripts...
5,530
Posted By a_bahreini
Let's say this is my first file: a b c d e f ...
Let's say this is my first file:
a b c d e f
And this is the second one:
1 2 3 4 5 d
This is what I want:
a b c d e f 1 2 3 4 5 d
5,530
Posted By a_bahreini
Yes, that's what I meant.
Yes, that's what I meant.
5,530
Posted By a_bahreini
I'm a bit confused. I want to intersect two files...
I'm a bit confused. I want to intersect two files based on their specific column, let's say column $4 from both files. This is just printing col 4 & 6 of the first and second files, respectively....
5,530
Posted By a_bahreini
Oh sorry. paste <(awk '$0=$4' TCGA_mut.bed)...
Oh sorry.
paste <(awk '$0=$4' TCGA_mut.bed) <(awk '$0=$6' Met_mut.bed)
while read a1 a2 a3 a4 a5 a6 a7 <&1 && read b1 b2 b3 b4 b5 b6 b7 <&3; do printf "%s\t%s\n" "$a4" "$b6"; done...
5,530
Posted By a_bahreini
od -bc TCGA_mut.bed | head -n +5 od -bc...
od -bc TCGA_mut.bed | head -n +5
od -bc Met_mut.bed | head -n +5
"TCGA_mut.bed" is the first and "Met_mut.bed" is the second file.
5,530
Posted By a_bahreini
The files are big, so I'm just pasting the first...
The files are big, so I'm just pasting the first 5 lines:
File1
0000000 061 071 011 065 070 070 066 062 067 070 064 011 065 070 070 066
1 9 \t 5 8 8 6 2 7 8 4 \t 5 ...
5,530
Posted By a_bahreini
I'm using Cygwin on windows
I'm using Cygwin on windows
Showing results 1 to 25 of 57

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