Search Results

Search: Posts Made By: sxiong
1,226
Posted By sxiong
Thanks a lot for your inputs. However, I guess I...
Thanks a lot for your inputs. However, I guess I didn't state my problem clearly. The purpose of my Python script is to run certain equations with a few parameters as input, and to output the final...
1,226
Posted By sxiong
Maximum number of data in Python
Hi all,

I would like to save my output data in two columns. I tried print(x,y) but have two problems:
1. There are ~10000 values for each x and y, but the intermediates are omitted;
2. I'd like...
1,082
Posted By sxiong
How to get specific lines?
Hi all,

I am a beginner to bash shell. I am trying to get multiple lines from file1 using the line numbers listed in file2. For example, file2 looks like:
1
3
4
8
10
...


How may I get...
1,726
Posted By sxiong
That is exactly what I want. Thank you very much!...
That is exactly what I want. Thank you very much! I forgot I have three columns in the output... Thanks again!
1,726
Posted By sxiong
Thanks for your kind replies. I want to divide...
Thanks for your kind replies. I want to divide the data in my input.dat by a times a constant as a goes from 1 to 499. I used awk '{print (a<500,a++,$1/(a*1.121212121212121229e-02))}' input.dat...
1,726
Posted By sxiong
Help with decimal points
Hi All,

I would like to set decimal point to 16 in the following bash script but it has syntax error at }:

awk '{printf"%.16e", (a<500,a++,$1/(a*1.1212121212121229e-02))}' input.dat...
754
Posted By sxiong
Passing value in awk
Hi,

I want to pass value of the variable i which is the radius in the following command in bash script:
awk '{r=sqrt($2^2+$3^2+$4^2); if(r<=$i) print r }' input.txt

It ignores $i in if command...
1,511
Posted By sxiong
Thank you so much for your help!
Thank you so much for your help!
1,511
Posted By sxiong
Duplicate lines
Dear All,

I have a two-column data file and want to duplicate data in second column w.r.t. first column.

My file looks like:
2 5.672
1 3.593
3 8.260
...

And the desired format:...
5,967
Posted By sxiong
Help with xmgrace histogram
Hi All,

I am new to Grace and would like to plot histograms. My input files have one column for frequencies and another column for distances, for example:
1 2.6
4 2.7
5 2.8
2 3.9...
Showing results 1 to 10 of 10

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