Search Results

Search: Posts Made By: bala06
Forum: Programming 09-19-2018
1,418
Posted By bala06
Hi Moderator, I tried the example code and...
Hi Moderator,

I tried the example code and it outputs only the "S 7" not the other one "S -48".

I am using mac OS X Yosemite and version 10.10.5

Thank you sir.

------ Post updated at...
Forum: Programming 09-19-2018
1,418
Posted By bala06
Hi Moderator, Sorry for pasting the data as...
Hi Moderator,

Sorry for pasting the data as text file. I will copy and paste them in code tags hereafter.

I tried the awk one liner. It gets me only the first line of the output and does not...
Forum: Programming 09-19-2018
1,418
Posted By bala06
Find the minimum value of the column with respect to other column
Hi All,

I would like get the minimum value in the certain column with respect to other column.

For example, I have a text file like this.


ATOM 1 QSS SPH S 0 -2.790 -1.180 ...
Forum: Programming 01-08-2013
3,665
Posted By bala06
Dear Corona It works. Many Thanks ...
Dear Corona

It works.

Many Thanks
Balaji:b:
Forum: Programming 01-08-2013
3,665
Posted By bala06
awk script for finding probability of distribution of numbers
Dear All

I am having data file containing 0 to 40,000 like this...

0 5
1 65
2 159
3 356
...
...
40000 19

I want to find the probability of distribution between the numbers. The second...
Forum: Programming 12-13-2012
1,020
Posted By bala06
Python script for adding number
Dear All

I am having following python script.




def read_output(file):
inp=open(file, "r")
row=map(lambda x: x.split(), inp.readlines())
line=[]
for r...
Forum: Programming 12-02-2012
3,081
Posted By bala06
Hi Don Thanks a lot for your patience,...
Hi Don

Thanks a lot for your patience, suggestions and help.

The scripts works.

Many Thanks
Balaji
Forum: Programming 12-02-2012
3,081
Posted By bala06
Hi Don In the script, I kept the line. ...
Hi Don

In the script, I kept the line.


#!/bin/ksh
echo $eon
type eon
ksh eon_run.sh


for file in shape_eon_input_[1-9].oeb.gz shape_eon_input_[1-9][[0-9].oeb.gz...
Forum: Programming 12-02-2012
3,081
Posted By bala06
Hi Don Thanks for advice. I changed the...
Hi Don

Thanks for advice.

I changed the above things in .bashrc file, logged out and after login tried



ksh eon_run.sh




It shows error as


eon is a tracked alias for...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi Don I am sorry I didnt get what i should...
Hi Don

I am sorry I didnt get what i should do now.

I dont knw what I should change in this

...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi Don Sorry for above confusion ...
Hi Don

Sorry for above confusion

1.echo $eon


/home/Balaji/Desktop.openeye_programs/openeye/bin/eon


2. ksh eon_run.sh


/home/Balaji/Desktop.openeye_programs/openeye/bin/eon
eon:...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi Don Kindly find the following ...
Hi Don

Kindly find the following


echo $path


result
...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi Don I changed to #!/bin/ksh ...
Hi Don

I changed to


#!/bin/ksh
echo $PATH
type eon
ksh eon_run.sh

for file in shape_eon_input_[1-9].oeb.gz shape_eon_input_[1-9][[0-9].oeb.gz shape_eon_input_[1-9][0-9][0-9].oeb.gz
do...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi don I added the lines #!/bin/ksh ...
Hi don

I added the lines


#!/bin/ksh
echo $/home/Balaji/electrostatics
type eon

for file in shape_eon_input_[1-9].oeb.gz shape_eon_input_[1-9][[0-9].oeb.gz...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi Don I am trying todo the second step. ...
Hi Don

I am trying todo the second step.

I checked for path of ksh, as you mentioned its in the path /bin/ksh.

If /home/Balaji is my curremt working directory, where should I have to add...
Forum: Programming 12-01-2012
3,081
Posted By bala06
Hi Don Thanks for help. I save the...
Hi Don

Thanks for help.

I save the script as eon-run.sh and tried to run the script as " sh eon-run.sh"

It shows error as "eon command not found in line 5.

However, the command line works...
Forum: Programming 12-01-2012
3,081
Posted By bala06
awk script for automating the other commercial software command lines
Dear All

I need awk script to automated the other software command lines.

I am having input files like "shape_eon_input_1.oeb.gz" to "shape_eon_input_968.oeb.gz" total of 968 files.

For...
Forum: Programming 12-01-2012
2,992
Posted By bala06
Hi All Thanks for all your help and...
Hi All

Thanks for all your help and suggestions.

RudiC could you please tell me how to run your awk program.

Many Thanks
Balaji
Forum: Programming 11-30-2012
2,992
Posted By bala06
Dear Joeyg I am familiar in awk or shell...
Dear Joeyg

I am familiar in awk or shell scripting.

could you please kindly help me

Many Thanks
Balaji
Forum: Programming 11-30-2012
2,992
Posted By bala06
Transforming 3 columns to matrix format
Dear All

I have a huge data for 3 columns similar to this


D2cls0 D2cls0 1
D2cls0 D2cls1 0.308
D2cls0 D2cls2 0.554
D2cls0 D2cls3 0.287
D2cls0 D2cls4 0.633
D2cls0 D2cls5 0.341...
Forum: Programming 11-30-2012
1,118
Posted By bala06
Hi Thanks. It works. Many Thanks ...
Hi

Thanks. It works.

Many Thanks
Balaji:b:
Forum: Programming 11-30-2012
1,118
Posted By bala06
Transforming data to other format
Dear All

I would like to transform data from one format to another format.

my Input:


0 0 1
0 1 0.308
0 2 0.554
0 3 0.287


output:


Z (0,0)= 1
Z (0,1)=0.308
Z (0,2)=0.554
Z...
Forum: Programming 11-30-2012
2,634
Posted By bala06
Hi vgresh Sorry for confusion. My data...
Hi vgresh

Sorry for confusion.

My data is in such format


D2cls0 D2cls0 1
D2cls0 D2cls1 0.308
D2cls0 D2cls2 0.554
D2cls0 D2cls3 0.287
D2cls0 D2cls4 0.633...
Forum: Programming 11-30-2012
2,634
Posted By bala06
Hi I checked the forums and tried for my...
Hi

I checked the forums and tried for my data its not working and not generating matrix.

could you please kindly help.

Many Thanks
Balaji
Forum: Programming 11-30-2012
2,634
Posted By bala06
Dear Programmers I have simplified the data...
Dear Programmers

I have simplified the data such that it look like as shown below.

I want convert xy data as matrix.


0 1
0 0.308
0 0.554
0 0.287
0 0.633
0 0.341
0 0.665
0 0.698...
Showing results 1 to 25 of 41

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