Sponsored Content
Full Discussion: Bash shell script
Top Forums UNIX for Dummies Questions & Answers Bash shell script Post 302163332 by outthere_3 on Thursday 31st of January 2008 07:13:32 PM
Old 01-31-2008
bash shell script

My friend you truly are a legend.

Thankyou

Jeremy
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

need help with bash shell script

Hi guys! I have just started with shell programming!! I am having pronblem with variable subsitutuion. when i do egrep "*" marks this will give me the pattern match. but how can i catch the output of that result in a variable. if i say result = egrep "*" marks it gives me syntax... (2 Replies)
Discussion started by: vmtailor
2 Replies

2. Shell Programming and Scripting

Bash Shell script--need help

Hi all, i am beginner to unix and trying out a shell script which does the following. i have to calculate a persons salary. his salary is read from the keyboard. he has two types of deductions. 40% as dearness allowance and 20% as house rent. i have to print the gross salary. here is the code... (5 Replies)
Discussion started by: Irishboy24
5 Replies

3. Shell Programming and Scripting

Bash shell script- help

I need to invoke a program on remote server using ssh in a shell script. In addition i would like to capture date/time and if there is any errors , then script should write to log file. can someone please help me out? (1 Reply)
Discussion started by: sam101
1 Replies

4. Shell Programming and Scripting

Help with bash shell script

Hi, I have a file in which records contains non ascii characters. The records are comma delimited and quoted. The non ascii characters are found in a particular column. Example records "YY","AK000021","Ã","IO","PP" "Y1","AK000022","Ã","PO","PP" "Y2","AK000022","Ã","PO","PP" I need to... (2 Replies)
Discussion started by: akshu.agni
2 Replies

5. Shell Programming and Scripting

Bash Shell Script

HELP!My program ends after entering one choice---need help making it take multiple inputs,instead of terminating after displaying just one #!/bin/bash# Crude address databaseclear # Clear the screen.echo " Contact List"echo " ------- ----"echo "Choose one of the following... (6 Replies)
Discussion started by: help123
6 Replies

6. Shell Programming and Scripting

Bash shell script to check if script itself is running

hi guys we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Discussion started by: hedkandi
8 Replies

7. Shell Programming and Scripting

Need help with bash shell script

I need to create digit day script that takes a single numeric argument and then it should print out the day of the week using the number modulo 7 formula e.g: 0 - Sunday 6- Saturday 131 - Friday I am fairly new to unix so I don't know how to use the number modulo 7 formula. Does the script need... (3 Replies)
Discussion started by: lukefrost96
3 Replies

8. Shell Programming and Scripting

Help with Bash shell script

Hi All, I have a script which as below #!/bin/bash for i in `cat servers` do ssh uname@$i "df -t xfs --total | grep total"; done > out.txtOutput as below -------------- total 140583991104 118622795524 21961195580 85% - total 140583991104 112888595524 27695395580 ... (4 Replies)
Discussion started by: npk
4 Replies

9. Shell Programming and Scripting

Different behavior between bash shell and bash script for cmd

So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s... (5 Replies)
Discussion started by: da1
5 Replies

10. UNIX for Beginners Questions & Answers

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ? --- Post updated at 08:39 AM --- in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
xpm2ps(1)					 GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c					 xpm2ps(1)

NAME
xpm2ps - converts XPM matrices to encapsulated postscript (or XPM) VERSION 4.5.4-dev-20110404-bc5695c SYNOPSIS
xpm2ps -f root.xpm -f2 root2.xpm -di ps.m2p -do out.m2p -o plot.eps -xpm root.xpm -[no]h -[no]version -nice int -[no]w -[no]frame -title enum -[no]yonce -legend enum -diag enum -size real -bx real -by real -rainbow enum -gradient vector -skip int -[no]zeroline -legoffset int -combine enum -cmin real -cmax real DESCRIPTION
xpm2ps makes a beautiful color plot of an XPixelMap file. Labels and axis can be displayed, when they are supplied in the correct matrix format. Matrix data may be generated by programs such as do_dssp, g_rms or g_mdmat. Parameters are set in the .m2p file optionally supplied with -di. Reasonable defaults are provided. Settings for the y-axis default to those for the x-axis. Font names have a defaulting hierarchy: titlefont - legendfont; titlefont - (xfont - yfont - ytickfont) - xtickfont, e.g. setting titlefont sets all fonts, setting xfont sets yfont, ytickfont and xtickfont. When no .m2p file is supplied, many settings are taken from command line options. The most important option is -size, which sets the size of the whole matrix in postscript units. This option can be overridden with the -bx and -by options (and the corresponding parameters in the .m2p file), which set the size of a single matrix element. With -f2 a second matrix file can be supplied. Both matrix files will be read simultaneously and the upper left half of the first one ( -f) is plotted together with the lower right half of the second one ( -f2). The diagonal will contain values from the matrix file selected with -diag. Plotting of the diagonal values can be suppressed altogether by setting -diag to none. In this case, a new color map will be generated with a red gradient for negative numbers and a blue for positive. If the color coding and legend labels of both matrices are identical, only one legend will be displayed, else two separate legends are displayed. With -combine, an alternative operation can be selected to combine the matrices. The output range is automatically set to the actual range of the combined matrix. This can be overridden with -cmin and -cmax. -title can be set to none to suppress the title, or to ylabel to show the title in the Y-label position (alongside the y-axis). With the -rainbow option, dull grayscale matrices can be turned into attractive color pictures. Merged or rainbowed matrices can be written to an XPixelMap file with the -xpm option. FILES
-f root.xpm Input X PixMap compatible matrix file -f2 root2.xpm Input, Opt. X PixMap compatible matrix file -di ps.m2p Input, Opt., Lib. Input file for mat2ps -do out.m2p Output, Opt. Input file for mat2ps -o plot.eps Output, Opt. Encapsulated PostScript (tm) file -xpm root.xpm Output, Opt. X PixMap compatible matrix 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 -[no]frameyes Display frame, ticks, labels, title and legend -title enum top Show title at: top, once, ylabel or none -[no]yonceno Show y-label only once -legend enum both Show legend: both, first, second or none -diag enum first Diagonal: first, second or none -size real 400 Horizontal size of the matrix in ps units -bx real 0 Element x-size, overrides -size (also y-size when -by is not set) -by real 0 Element y-size -rainbow enum no Rainbow colors, convert white to: no, blue or red -gradient vector 0 0 0 Re-scale colormap to a smooth gradient from white {1,1,1} to {r,g,b} -skip int 1 only write out every nr-th row and column -[no]zerolineno insert line in .xpm matrix where axis label is zero -legoffset int 0 Skip first N colors from .xpm file for the legend -combine enum halves Combine two matrices: halves, add, sub, mult or div -cmin real 0 Minimum for combination output -cmax real 0 Maximum for combination output SEE ALSO
gromacs(7) More information about GROMACS is available at <http://www.gromacs.org/>. Mon 4 Apr 2011 xpm2ps(1)
All times are GMT -4. The time now is 01:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy