Search Results

Search: Posts Made By: biopsy
7,789
Posted By biopsy
thanks i want to grep only snp1 from all files...
thanks
i want to grep only snp1 from all files and print its columns to new file

---------- Post updated at 07:21 AM ---------- Previous update was at 05:29 AM ----------

any suggestion?
7,789
Posted By biopsy
sorry i got the a file with my searched word but...
sorry i got the a file with my searched word but only column 1 and 2 aatched however i want to display the content of all columns like
7,789
Posted By biopsy
Grep and cat combined
Hello,
i need to search one word (snp1) from many files and copy the content of the columns of this word in new file.
example:
file 1:
SNP BP CHR P
snp1 1 3 0.01
snp2 2 2 ...
3,383
Posted By biopsy
thanks so much Bakunin for your help, i created...
thanks so much Bakunin for your help,
i created a filelist with all the names for the files that i want to concatenate. as you can see attached in "files_name" the names of these files is doest...
3,383
Posted By biopsy
Concatenate 560 files in one
HI all,
could please help me in this code. I have 560 files containing the same columns but different rows. i want to concatenate all these files in one big file. i want to keep the header of the...
4,174
Posted By biopsy
[QUOTE=elixir_sinari;302737601][CODE]awk...
[QUOTE=elixir_sinari;302737601][CODE]awk 'BEGIN{srand()}
4,174
Posted By biopsy
it works fine thanks however i need to repeat...
it works fine thanks
however i need to repeat 10 times the code to get the file split in 10 files, then i get 10 files but with overlaps between them, could you please modify to get 10 output files...
4,174
Posted By biopsy
thank you sorry how to execute the script? it...
thank you
sorry how to execute the script? it give an error :

awk: cmd. line:2: srand
awk: cmd. line:2: ^ unexpected newline or end of string

thanks
4,174
Posted By biopsy
Random selection of subset of sample from file
Hello
Could you please help me to find a code that can randomly select 1224 lines from a file of 12240 and make tn output with 1224 line each.
my input is txt file with 12240 lines like :...
51,371
Posted By biopsy
okay sorry thanks the desired out put is: ...
okay sorry thanks

the desired out put is:
1 rs58108140 10583 A G .1438 2184 0 1-10583
1 rs189107123 10611 G C .01877 2184 1 ...
51,371
Posted By biopsy
with awk '{print $1" "$2" "$3" "$1"-"$3}' ...
with
awk '{print $1" "$2" "$3" "$1"-"$3}'
works perfect thanks but how to keep the other colomns in the file (4, 5 ,..)?

Please use code tags (https://www.unix.com/misc.php?do=bbcode&#code)...
51,371
Posted By biopsy
i gor this output CHR SNP BP A1 ...
i gor this output
CHR SNP BP A1 A2 MAF NCHROBS PrimaryFirst^M CHR-PrimaryFirst
1 rs58108140 10583 A G .1438 2184 0^M 1-0
1 ...
51,371
Posted By biopsy
thanks I tried awk '{$NF=$1 "-" $NF}1' input...
thanks
I tried
awk '{$NF=$1 "-" $NF}1' input >> results
i got :
1 rs1111 10583 1-0
1 rs1891 10611 1-1
1 rs1807 13302 1-1

---------- Post updated at 09:55 AM...
51,371
Posted By biopsy
sorry could you explian more your code i tried...
sorry could you explian more your code
i tried it but i didit get the output needed
thanks

---------- Post updated at 09:47 AM ---------- Previous update was at 09:46 AM ----------

how to...
51,371
Posted By biopsy
Concatenate two columns and separate by - (minus)
hi all
could you please help me to concatenate two colomns and separate them by "-"
the two colomns to concatenate are colomuns 1 and 3 of a very bif file
clomn 1 is chr, 2 is snp and 3 is bp ...
1,094
Posted By biopsy
it works fine thanks so much for your post
it works fine thanks so much for your post
1,094
Posted By biopsy
Seperate columns according to delimiters
Hi all
I need your help to separate colomns based on "-" delimiter for a very big file 30 millions rows
I have a colmun looking like this :
clomun 1
1-100000989-A_ATC
1-10000179-AAAAA...
1,694
Posted By biopsy
which variable to change for 600 files? there are...
which variable to change for 600 files? there are 12000 row per file
thanks
1,694
Posted By biopsy
yes. only the 4th column have different values in...
yes. only the 4th column have different values in each file.
thanks
1,694
Posted By biopsy
greats it work fine thanks so much just one...
greats it work fine thanks so much
just one more question how to adjust for many files (600) together because this scripts works only for 2 files
thanks again
1,694
Posted By biopsy
sorry, i am using unix environment (putty) under...
sorry, i am using unix environment (putty) under windows
1,694
Posted By biopsy
merging horizentally
Dear all,
I would like to merge around 600 files, they all have 4 colomns: the first three columns are the same in each file and want to add the 4th colomn from each file. like the example below....
1,456
Posted By biopsy
sorry it doesnt work i got the same file
sorry it doesnt work i got the same file
1,456
Posted By biopsy
Adding column with values
Dear all,

I need your help for my question please

I have without header (space separated) and need to add two colomns at the beginning with values
my file look like :

rs1 a t 0.6
rs2 a c...
Showing results 1 to 24 of 24

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