Search Results

Search: Posts Made By: kaixinsjtu
1,908
Posted By kaixinsjtu
Thanks a lot!! :):)
Thanks a lot!! :):)
1,908
Posted By kaixinsjtu
a dummy question on data processing
Hi, everyone,
I have a matrix, let's say:

1 2 3 4 5 6 ...
4 5 6 7 8 9 ...
7 8 9 1 2 3 ...
3 4 5 6 7 8 ...
.........
(nxm matrix)

Is there a simple command that can take certain...
11,263
Posted By kaixinsjtu
Ok, I'm a super Rookie. I put nawk 'FNR==NR...
Ok, I'm a super Rookie.
I put
nawk 'FNR==NR {a[$0]++; next} !a[$0]' xxx.txt yyy.txt
in a txt file call 'awk.txt'
Then I use
> sh awk.txt
awk.txt: line 1: nawk: command not found

I...
11,263
Posted By kaixinsjtu
There is only gawk here. No nawk. Are they the...
There is only gawk here. No nawk. Are they the same??
thanks.

PS: gawk ... doesn't work for me...
11,263
Posted By kaixinsjtu
how to find common words and take them out from two files
Hi, everyone,
Let's say, we have
xxx.txt
A 1 2 3 4 5
C 1 2 3 4 5
E 1 2 3 4 5

yyy.txt
A 1 2 3 4 5
B 1 2 3 4 5
C 1 2 3 4 5
D 1 2 3 4 5
E 1 2 3 4 5

First I match the first column...
11,904
Posted By kaixinsjtu
Thanks a lot.
Thanks a lot.
3,784
Posted By kaixinsjtu
I really appreciate your help! However, the...
I really appreciate your help!
However, the file is from human genome sequencing (>1G, too large).
I found some other way to do it. Not with Unix. But in R. Although not so efficient.
Anyway,...
4,407
Posted By kaixinsjtu
THanks so much too!!
THanks so much too!!
4,407
Posted By kaixinsjtu
Thanks so much!!
Thanks so much!!
4,407
Posted By kaixinsjtu
how to combine two files together, not by row buy by column
let's say, we have:
x1.txt
1 2
3 4
5 6

x2.txt
7 8
9 10
11 12

is there a very simple command like 'cat' that can makes them combine into x3.txt :
1 2 7 8
3 4 9 10
5 6 11 12
Thanks...
3,784
Posted By kaixinsjtu
Yes I tried : grep "A/C " xxx.txt | more ...
Yes I tried : grep "A/C " xxx.txt | more (with a space)
still nothing showed up!! Really sucks, why it didn't work on my computer! Gonna figure it out... maybe because of the format of the...
3,784
Posted By kaixinsjtu
I have tried, but failed to work. nothing show up...
I have tried, but failed to work. nothing show up after I put in a space after A/C.
I guess "/" is considered a 'space'...
That's also why I'm asking if I could set the delimiter by myself...
3,784
Posted By kaixinsjtu
Help! "grep" doesn't work for me!
totally pis*ed off.
I have a data set (xxx.txt), as follows:

chr1 3821 rs127372 A/C 0.823
chr1 3822 rs127376 A/C/G 0.899
chr1 3722 rs612634 A/C 9.22
chr1 3262 rs7152 ...
11,904
Posted By kaixinsjtu
Yes, you are absolutely right. Thanks! i just...
Yes, you are absolutely right. Thanks!
i just wonder, what does 777 means here??
11,904
Posted By kaixinsjtu
what if their files names are all different, like...
what if their files names are all different, like x, y,z but I need to use the same command 'mv' for 20 times on 20 different files?? thanks!!
11,904
Posted By kaixinsjtu
Command to run multiple commands from a file.
I need a command, which could run mutliple commands from a file.
Let's say, I have
mv fileA1 fileB1
mv fileA2 fileB2
.....
mv fileA20 fileB20
I put these commands in a file, then I need a...
13,530
Posted By kaixinsjtu
Thanks a lot, too!!
Thanks a lot, too!!
13,530
Posted By kaixinsjtu
Thanks a lot! Really a easy way!
Thanks a lot! Really a easy way!
13,530
Posted By kaixinsjtu
how to cut prefix from a string
I have a file:

chromosome1:436728
chromosome2:32892
.....
chromosome22:23781

I just want to get the number, not the prefix "chromosomeX", so I want to remove all the prefix ahead of the...
2,276
Posted By kaixinsjtu
really appreciate :):):)
really appreciate :):):)
2,276
Posted By kaixinsjtu
one more dummy question, what if I want to keep...
one more dummy question, what if I want to keep column 1 and column 3, but remove column 2 and column 4?? I mean, can I still use cut -f ?? ( or i need to use awk, which I don't really...
2,276
Posted By kaixinsjtu
thanks !!! :-)))))))))
thanks !!! :-)))))))))
2,276
Posted By kaixinsjtu
dummy question on data process
I have a file which contains 6 columns.
But I only need the first 3 columns. So I need to remove the last 3 columns. I checked 'cut' but it seems not working.
So is there a command that could...
2,057
Posted By kaixinsjtu
so nice of you!! save my ass :D:D
so nice of you!! save my ass :D:D
2,057
Posted By kaixinsjtu
a dummy question...needs help...
I am trying to use 'cut' to get a line from my file. But it seems that 'cut' recongnizes TAB as default. My file uses space instead. So 'cut' doesn't work.
Anybody can tell me how to change the...
Showing results 1 to 25 of 25

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