I ran yoyour second code. It gives me the wrong output. It even prints the texts in the input.
Here is a sample input,
Can you please try to run the code for this and see if it works perfectly with just printing the matrix with 0 inserted in the spaces along the diagonal? If not can you make what changes I should make to get that output? It is 5*5 matrix in the above input. There is space along the diagonal.
Thanks,
Srijit
Last edited by Scott; 08-17-2010 at 03:49 AM..
Reason: Code tags, please...
Hi,
I'm new to unix and i am kind of familiar with the basic commands.
can anyone suggest some good books especially for AWK scripting and SHELL scripting
thanks,
Hari (2 Replies)
I have a text file in which the text has been divided into paragraphs (two line breaks or tab marks a new paragraph) and I want to make a script which output would delete line breaks within the paragraph and the different paragraphs would be separated by two line breaks.
So, if my input file... (14 Replies)
Hi,
I am trying to understand what is happening here, new to scripting: I have a couple of these, but if I knew what was going on in one I can figure out the rest:
awk '/rpc-100083/ { $2 = "enable -r" }
$3 ~ /.NOS99dtlogin/ { $t = $2; $2 = $3; $3 = $t }
{ print }' /var/svc/profile/upgrade... (2 Replies)
Hi
I have 2 files of large size( 10 Miilions) , i want to join 2 files based on some condition .
for this taking lot of time and 100 cpu .i want to iterate the based on some value (like 1 lakh)
I put the 2 files in the associative arrays . if the array limit reaches the 1 lach join the with... (2 Replies)
Hi Experts,
I am adding a column of numbers with awk , however not getting correct output:
# awk '{sum+=$1} END {print sum}' datafile
2.15291e+06
How can I getthe output like : 2152910
Thank you..
# awk '{sum+=$1} END {print sum}' datafile
2.15079e+06 (3 Replies)
Hi, i am newbie to this site and hope to learn but problem is s but need help urgently.
Plz pm me if you are good at this.
Help will be appreciated. (11 Replies)
hi all,
I am working on awk scripting.I have created two awk files and now have a requirement of replacing the contents of first file with some contents of second file.
Please find below the two files created.File1 has 3 records and File2 has 4 records.
cat File1
111,0165,CB21031251,0165,... (3 Replies)
Hi
I am beginner of shell/AWK scripting , can you please help me in select particular column and column between two pattern from a multiple column file.
file1.txt
number status date1 date2 description category ... (7 Replies)
Hey guys,
I want to get all the columns in this input file tab-delimited, i need to get the column send them to a variable. From there i could print them in shuffle and pick and select columns i want.
Here is the input sample
2013/08/05 06:50:38:067 MINOR SiteScope ... (9 Replies)
I am trying to write a shell script that will add a date to and awk command from the command prompt.
here is the line I am having difficulties.
zgrep -i playback $dir/$1-*-errors.out.gz |cut -d '|' -f 1,11,12,15 | awk -v start=${start} -v end=${end} -F '|' '{$1>=start && $1 <=end} {print $2... (7 Replies)
Discussion started by: infinity0880
7 Replies
LEARN ABOUT DEBIAN
g_morph
g_morph(1) GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c g_morph(1)NAME
g_morph - linear interpolation of conformations
VERSION 4.5.4-dev-20110404-bc5695c
SYNOPSIS
g_morph -f1 conf1.gro -f2 conf2.gro -o interm.xtc -or rms-interm.xvg -n index.ndx -[no]h -[no]version -nice int -[no]w -xvg enum -ninterm
int -first real -last real -[no]fit
DESCRIPTION
g_morph does a linear interpolation of conformations in order to create intermediates. Of course these are completely unphysical, but that
you may try to justify yourself. Output is in the form of a generic trajectory. The number of intermediates can be controlled with the
-ninterm flag. The first and last flag correspond to the way of interpolating: 0 corresponds to input structure 1 while 1 corresponds to
input structure 2. If you specify -first 0 or -last 1 extrapolation will be on the path from input structure x1 to x2. In general, the
coordinates of the intermediate x(i) out of N total intermidates correspond to:
x(i) = x1 + (first+(i/(N-1))*(last-first))*(x2-x1)
Finally the RMSD with respect to both input structures can be computed if explicitly selected ( -or option). In that case, an index file
may be read to select the group from which the RMS is computed.
FILES -f1 conf1.gro Input
Structure file: gro g96 pdb tpr etc.
-f2 conf2.gro Input
Structure file: gro g96 pdb tpr etc.
-o interm.xtc Output
Trajectory: xtc trr trj gro g96 pdb cpt
-or rms-interm.xvg Output, Opt.
xvgr/xmgr file
-n index.ndx Input, Opt.
Index file
OTHER OPTIONS
-[no]hno
Print help info and quit
-[no]versionno
Print version info and quit
-nice int 0
Set the nicelevel
-[no]wno
View output .xvg, .xpm, .eps and .pdb files
-xvg enum xmgrace
xvg plot formatting: xmgrace, xmgr or none
-ninterm int 11
Number of intermediates
-first real 0
Corresponds to first generated structure (0 is input x0, see above)
-last real 1
Corresponds to last generated structure (1 is input x1, see above)
-[no]fityes
Do a least squares fit of the second to the first structure before interpolating
SEE ALSO gromacs(7)
More information about GROMACS is available at <http://www.gromacs.org/>.
Mon 4 Apr 2011 g_morph(1)