Sponsored Content
Top Forums Shell Programming and Scripting Finding max number in filename and opening it Post 302584736 by vbe on Sunday 25th of December 2011 04:42:04 AM
Old 12-25-2011
Code:
ls energy.dat.*|sort -rn|head -1

This User Gave Thanks to vbe For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding max value

My code below is supposed to find which company had the most business and then print the appropriate fields from another file which are the companies ID number and name. I can loop through awk and display all the total amount of business for each company but I need help in only printing out the... (1 Reply)
Discussion started by: Enigma23
1 Replies

2. Shell Programming and Scripting

Help in finding the max and min position

Hi, I have this input file called ttbitnres (which is catenated and sorted):- 8 0.4444 213 10 0.5555 342 11 0.5555 321 12 0.5555 231 13 0.4444 400 My code is at :- #!/bin/bash echo -e Version "\t" Number of Pass "\t" Number of Fail "\t" Rank Position "\t"Min "\t" Max... (1 Reply)
Discussion started by: ahjiefreak
1 Replies

3. Solaris

Max. Possible number of IOs

Hi, Is there a way to find out the maximum possible number of IOs on a Solaris Servers. I'm using SUN Fire V240 (2 Replies)
Discussion started by: justsam
2 Replies

4. Shell Programming and Scripting

Finding opening and closing braces

I am reading a cpp file thru shell script . There are many fuctions inside the cpp file eg pvvd_fncn_name1 { ..... something } pvvd_fncn_name2 { ..... something } what I require is a method to find the first opening brace and the coresponding last brace and search... (2 Replies)
Discussion started by: ultimatix
2 Replies

5. Shell Programming and Scripting

find max number

Hi, i have a file with numbers in it and i was wondering if there's a script i could use to find the max number and have that printed to a new file? example a.txt 18 26 47 34 27 so find the max number in a.txt and print it to b.txt. Thanks! (17 Replies)
Discussion started by: moonbaby
17 Replies

6. Shell Programming and Scripting

Finding Max value from an array

Hi, I need to find max and second max element from an array. array contains 0338,0337,0339,0340,0401,0402,0403 (10 Replies)
Discussion started by: vjasai
10 Replies

7. Shell Programming and Scripting

Max number of variables?

Hi Folks.Just out of interest does anyone know if their is a maximum number of variables that korn shell supports and if so how do I query what it is?Cheers (1 Reply)
Discussion started by: steadyonabix
1 Replies

8. UNIX for Dummies Questions & Answers

Select max value based on filename

Hi, I would just like to know how to get the file with the max filename on a directory and get rid of all the others. For example, in directory A:/ i have the ff files: APPLE2001 APPLE2002 APPLE2003 GRAPE2004 what I want to get is the max in files whose filenames start with APPLE*,... (4 Replies)
Discussion started by: madden
4 Replies

9. Shell Programming and Scripting

finding max size

Hi I have a list of 2000 records with multiple entries and I want to get the max size for each entry ABC 1 ABC 2 ABC 3 ABC 4 DEF 1 DEF 2 DEF 2 DEF 2 DEF 2 ... (9 Replies)
Discussion started by: Diya123
9 Replies

10. Shell Programming and Scripting

Finding max of a column grouping by the time

Hi, I have the below text: 16:00 0.50 16:00 0.30 16:00 0.00 16:00 0.00 16:00 0.30 16:01 0.00 16:01 0.30 I want to find the max of the 2nd column grouping by the values in the 1st column using awk. So 16:00 0.50 16:01 0.30 I have tried (3 Replies)
Discussion started by: satishrao
3 Replies
g_enemat(1)					 GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c				       g_enemat(1)

NAME
g_enemat - extracts an energy matrix from an energy file VERSION 4.5.4-dev-20110404-bc5695c SYNOPSIS
g_enemat -f ener.edr -groups groups.dat -eref eref.dat -emat emat.xpm -etot energy.xvg -[no]h -[no]version -nice int -b time -e time -dt time -[no]w -xvg enum -[no]sum -skip int -[no]mean -nlevels int -max real -min real -[no]coul -[no]coulr -[no]coul14 -[no]lj -[no]lj -[no]lj14 -[no]bhamsr -[no]bhamlr -[no]free -temp real DESCRIPTION
g_enemat extracts an energy matrix from the energy file ( -f). With -groups a file must be supplied with on each line a group of atoms to be used. For these groups matrix of interaction energies will be extracted from the energy file by looking for energy groups with names corresponding to pairs of groups of atoms, e.g. if your -groups file contains: 2 Protein SOL then energy groups with names like 'Coul-SR:Protein-SOL' and 'LJ:Protein-SOL' are expected in the energy file (although g_enemat is most useful if many groups are analyzed simultaneously). Matrices for different energy types are written out separately, as controlled by the -[no]coul, -[no]coulr, -[no]coul14, -[no]lj, -[no]lj14, -[no]bham and -[no]free options. Finally, the total interaction energy energy per group can be calculated ( -etot). An approximation of the free energy can be calculated using: E(free) = E0 + kT log( exp((E-E0)/kT) ), where '' stands for time-average. A file with reference free energies can be supplied to calculate the free energy difference with some reference state. Group names (e.g. residue names) in the reference file should correspond to the group names as used in the -groups file, but a appended number (e.g. residue number) in the -groups will be ignored in the comparison. FILES
-f ener.edr Input, Opt. Energy file -groups groups.dat Input Generic data file -eref eref.dat Input, Opt. Generic data file -emat emat.xpm Output X PixMap compatible matrix file -etot energy.xvg Output xvgr/xmgr file OTHER OPTIONS
-[no]hno Print help info and quit -[no]versionno Print version info and quit -nice int 19 Set the nicelevel -b time 0 First frame (ps) to read from trajectory -e time 0 Last frame (ps) to read from trajectory -dt time 0 Only use frame when t MOD dt = first time (ps) -[no]wno View output .xvg, .xpm, .eps and .pdb files -xvg enum xmgrace xvg plot formatting: xmgrace, xmgr or none -[no]sumno Sum the energy terms selected rather than display them all -skip int 0 Skip number of frames between data points -[no]meanyes with -groups extracts matrix of mean energies instead of matrix for each timestep -nlevels int 20 number of levels for matrix colors -max real 1e+20 max value for energies -min real -1e+20 min value for energies -[no]coulyes extract Coulomb SR energies -[no]coulrno extract Coulomb LR energies -[no]coul14no extract Coulomb 1-4 energies -[no]ljyes extract Lennard-Jones SR energies -[no]ljno extract Lennard-Jones LR energies -[no]lj14no extract Lennard-Jones 1-4 energies -[no]bhamsrno extract Buckingham SR energies -[no]bhamlrno extract Buckingham LR energies -[no]freeyes calculate free energy -temp real 300 reference temperature for free energy calculation SEE ALSO
gromacs(7) More information about GROMACS is available at <http://www.gromacs.org/>. Mon 4 Apr 2011 g_enemat(1)
All times are GMT -4. The time now is 06:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy