Search Results

Search: Posts Made By: kayak
1,616
Posted By kayak
Merge columns on different files
Hello, I have two files that have this format:

file 1

86.82 0.00 86.82 43.61
86.84 0.00 86.84 43.61
86.86 0.00 86.86 43.61
86.88 0.00 86.88 43.61


file 2

86.82 0.22
86.84 0.22...
922
Posted By kayak
Thanks Jim, this should work well well. I will...
Thanks Jim, this should work well well. I will run the script on a cluster, so no problems about memory. Would it be possible to omit the first three lines (with #) in each file in the average...
922
Posted By kayak
The average is based on the file I am currently...
The average is based on the file I am currently working on - so the average will be different for different files.
yes!

((col [9] / average (col[9]) ) < 1)

is the same as


(col[9] <...
922
Posted By kayak
Sorting operations on several files
I have over 250 files (named grad.1000, grad.1001, grad.1002) - see attachment - that have this format:


# 0.004 0.692758
# 6.23025467936 6.23025467936 6.23025467936 44.9620453206 44.9620453206...
8,526
Posted By kayak
Why not create a batch (*.bat) file such that...
Why not create a batch (*.bat) file such that once the first job finishes, the next one resumes?
4,423
Posted By kayak
Sum of a column in multiple files
I am performing the following operation on a file that looks like this

1000 0 10 479.0 1115478.07497 0.0 0.0 0.0872665
1000 10 20 1500.0 3470012.29304 0.0 0.0 0.261799
1000 20 30 2442.0...
6,265
Posted By kayak
Thanks Don Cragun. It works like magic!!
Thanks Don Cragun. It works like magic!!
806
Posted By kayak
answered
fitted parameters initialized with current variable values
6,265
Posted By kayak
[/QUOTE]
[/QUOTE]
4,243
Posted By kayak
Output mean and standard deviation of a row
I have a file that looks that this:


820 890 530
1650 1600 1800
1850 1900 2270
1640 2300 1670
2080 2200 2350
1150 1630 2210


I would like to output the mean and standard deviation of...
6,265
Posted By kayak
Yes, my output should look like this: ...
Yes, my output should look like this:

0.497897 0.00459204 1.57077
0.49692 0.00889775 1.57078


And so on.. Thanks
6,265
Posted By kayak
Grep final set of parameters from fit.log gnuplot file
I would like to grep the final set of fit parameters from a gnuplot log file to form columns that look like this.

a_1001 b_1001 x_1001
a_1002 b_1002 x_1002
a_1003 b_1003 x_1003
. ....
2,953
Posted By kayak
Sudo apt-get update fail: Malformed line 59
I am trying to update/add a repository. Whenever I try to do a

sudo apt-get update

I get the message:

E: Malformed line 59 in source list /etc/apt/sources.list (dist parse)
E: The list of...
9,613
Posted By kayak
0.01 was just an example. Not from the data. I'll...
0.01 was just an example. Not from the data. I'll try your solution now
9,613
Posted By kayak
awk for histogram
I have a single file that looks like this:

1.62816
1.62816
0.86941
0.86941
0.731465
0.731465
1.03174
1.03174
0.769444
0.769444
0.981181
0.981181
1.14681
1.14681
1.00511
1.00511...
9,068
Posted By kayak
Thanks guys, but what I get using: awk...
Thanks guys, but what I get using:


awk '$NF ~ /20/' test.dat > test2.dat


or


cat test2.dat|awk '$NF~/20.0)/{print}' > test3.dat


is a sorting that looks like this:


1000...
9,068
Posted By kayak
Grep special pattern in 3rd column
I have a file (test.dat) that has this pattern:


1000 000001 (92.431343802235503, 90.0)
1000 000002 (87.568656197764497, 80.0)
1000 000003 (150.75815307316083, 150.0)
1000 000004...
1,275
Posted By kayak
Mencoder Error
I am trying to merge several '*.png' files into a movie using mencoder. At present, I am using running the following on the terminal.

mencoder mf://*.png -mf fps=10:type=png -ovc x264...
2,808
Posted By kayak
Thanks...cat works like magic/
Thanks...cat works like magic/
2,808
Posted By kayak
Joining multiple files tail on tail
I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250.

I would like to join all 250 of them together tail by tail as follows....
1,088
Posted By kayak
thanks a million..
thanks a million..
1,088
Posted By kayak
Well, I tried an awk stuff but didn't seem to...
Well, I tried an awk stuff but didn't seem to catch it. Was thinking someone here has an idea I could work with
1,088
Posted By kayak
Operation on multiple files
I have four files that look like this:

file_1:

a b c
d e f


file_2:

g h i
j k l


file_3:

m n o
p q r
8,156
Posted By kayak
Thanks radoulov, I tried your solution but...
Thanks radoulov,

I tried your solution but it doesnt seem to catch it. What I actually want to write the average of the 9th column in each of my stat files to a new file as a single column. I have...
8,156
Posted By kayak
Average of a column in multiple files
I have several sequential files with name stat.1000, stat.1001....to stat.1020 with a format like this


0.01 1 3822 4.97379915032e-14 4.96982253992e-09 0
0.01 3822 1 4.97379915032e-14...
Showing results 1 to 25 of 29

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