Search Results

Search: Posts Made By: peanuts48
1,936
Posted By peanuts48
Awesome! Thanks!
Awesome! Thanks!
1,936
Posted By peanuts48
Thanks for the response, I ran the code...
Thanks for the response,

I ran the code using your test files and got the following message:



Can't locate autodie.pm in @INC (@INC contains:...
1,936
Posted By peanuts48
Special Merge of two files
I have two files, foo1 and foo2. I would like to merge them into file named foo3 such that field 1,2,3,4,5,ect of foo1 are fields 1,3,5,7,9,ect of foo3, and fields field 1,2,3,4,5,ect of foo2 are...
2,376
Posted By peanuts48
What if, instead of printing the maximum value...
What if, instead of printing the maximum value for each line, I wanted to print the column number of the maximum value for each line?

eg, the output file is now:

333...2
133...1
.
.
.

...
2,376
Posted By peanuts48
fixed it!
Thanks! The order still wan't quite right with the above, but I ended up using a variation, which did work:


paste $(ls -1 temp* | sort -t'_' -n -k2,2)
2,376
Posted By peanuts48
Thanks, I will give this a try! ----------...
Thanks, I will give this a try!

---------- Post updated at 09:52 AM ---------- Previous update was at 09:35 AM ----------

Hello, thanks for the script, the only issue is the paste file_*. This...
2,376
Posted By peanuts48
loop? print max column in each line for 800 files and merge
Hello,

I have 800 or so files with 3 columns each and >10000 lines each.
For each file and each line I would like to print the maximum column number for each line. Then I would like to 'paste'...
1,098
Posted By peanuts48
Thanks
Thanks! ug trailing spaces!
1,098
Posted By peanuts48
problem with join
So I want to join two files that have a lot of rows
The file named gen1 has 2 columns:

head gen1

1008567 0.4026931012
1119535 0.7088912314
1120590 0.7093805634
1145994 0.7287952590...
953
Posted By peanuts48
Looks like it works!
Hey Thanks a lot!
953
Posted By peanuts48
Recode A/T/G/C to 0/1 using a reference column
Hello,

I have a large file that contains 114 total columns with over 6,000 rows and a header; the final 27 columns are coded in A/T/G/C. There is also a reference column coded A/T/C/G.

e.g....
2,189
Posted By peanuts48
Ok, Thanks, I will give it a try and let you know...
Ok, Thanks, I will give it a try and let you know how it works!
2,189
Posted By peanuts48
finding nearest value in a column
Hi,
I have 2 files:
file1:

1 ia 2
1 mn 6
1 sd 11
2 ny 3
2 ma 10
3 wa 7
3 ca 8


file2

1 mi 3
1 wi 5
2 pa 4
3 id 6
1,179
Posted By peanuts48
It works very well thanks!
It works very well thanks!
1,179
Posted By peanuts48
Thanks, this is really helpful! What if file1 had...
Thanks, this is really helpful! What if file1 had several fields after the first one, and I wanted to print out all of the fields (not just $2)?
1,179
Posted By peanuts48
converting unique identifiers in a column using conversion file
Hello,

I often have this problem:

I have a file with a column of unique identifiers

e.g. file1 below has an id column and data column/columns with p rows:

cat data1
dog data2
cow...
10,679
Posted By peanuts48
Thanks
Thanks, I really appreciate it.
10,679
Posted By peanuts48
Replace every other space
I'd like a sed command to replace every other space in my file.

File:

0 1 0 3 0 2 0 5

Want:

01 03 02 05

Does anyone have any ideas?
Showing results 1 to 18 of 18

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