next up previous contents
Next: Sol2dat - convert and Up: Command reference Previous: Rfcon - convert numerical   Contents

Subsections

Rmruns - remove runs.

Rmruns removes runs from your data.

Usage

 rmruns [-h$ \mathrm \vert$-i$ \mathrm \vert$-f] ["pattern" ...] $ \mathrm \vert$ (-ra run [lab ...])  

Switches

 -h   :   Display a usage message and exit with nonzero return value.  
 -i   :   Interactive, prompt before removal of any matching run.  
 -f   :   Force, do not list or prompt.  
 -ra   :   Make rmruns behave symmetric to a call of rauto.  

Arguments

 pattern   :   Remove all runs that match the shell pattern pattern.  
 run   :   Name of run to remove, may contain one %d format specifier.  
 lab   :   Remove runs with restart labels lab ...  

Environment

Rmruns honors the same environment variables as lsruns, namely LSRUNS_COLS and LSRUNS_FW, which influence the formatting of rmruns' intermediate output. LSRUNS_COLS sets the maximal number of columns per line (default is 6) and LSRUNS_FW sets the field width per run name (default is 10).

Detailed description

Rmruns has two calling forms, one symmetric to lsruns and the other symmetric to rauto (switch -ra). In the first form a list of shell patterns is specified, that is, patterns containing the wildcard characters `*' and `?'; see the manual of [t]csh for what else might be used. Note that a pattern must be enclosed in double-quotes to prevent premature expansion by the shell. Rmrun will delete any run with a qualified run name that matches one of these patterns. If no pattern is given, then rmruns will delete all runs.

In the second form a run name run and a list of restart labels is given. Rmruns will expand run to a list of qualified run names and delete all these runs. That is, if you want to delete all runs created with a command like


 rauto name run ... -IRS 1 2 3 ...  


then


 rmruns run 1 2 3 ...  


will do so.

Rmruns knows that loosing precious data might be a painful experience and will kindly ask for your permission before sending any run to the digital Hell. Anything except a `yes', including `Yes' and `YES' will be interpreted as no. If you specify the -i switch rmruns will ask for each matching run separately, but here a `y' is also accepted as a yes and you can exit rmruns with answering `a' or `abort'. This way you don't need to worry about too complicated patterns. However, if you are one of those guys who never make mistakes, then the -f switch is for you.

Return values

Rmruns returns 0 on success and 1 if an error occurred or the -h switch was given.


next up previous contents
Next: Sol2dat - convert and Up: Command reference Previous: Rfcon - convert numerical   Contents
Frank Schilder 2007-04-12