execinput - reads commands from a text stream and execute them one at a time.
Synopsis
Description
Options
Examples
See Also
License
Copyright
Authors
execinput [ -h -? -help --help --? ]
execinput [options...] <inputfile
execinput reads a series of commands from stdin or a text file and executes each line as a command. execinput may be obtained from:
ftp://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/
Use of execinput is subject to the License terms.
-c string Any line which begins with a character contained in string is a comment and is not executed. (Default is to execute all input lines with 1 or more characters.) -h -help --help -? --?? Print the help message. (Default - do not print help message.) -ef Exit on first failure. ( Default - continue processing after a command failure). -i Emit version, copyright, license and contact information.( Default - do not emit information.) -in input_file Read input from the specified file. (Default is to read from stdin.) -loge Log processing to stderr. (Default is no logging.) -logf log_file Log processing to log_file. (Default is to read from stdin.) -wl widest_line Widest input line in characters. (Default widest_line=16000.)
% execinput -hList the the command line options.
% echo 'rm foobar' | execinputRun the command rm foobar.
% execinput -in cmdfile -ef -c '#!' -logf processed.logRead commands from cmdfile, treat lines beginning with # or ! as a comment, abort if any command fails, and log status messages to processed.log.
% find . | grep \/ | extract -cols "mv [1,] [1,-2][cu:-1,]" -dl \/ -mt | execinputChange to all upper case the names of the files and directories in this directory or below..
none
You may run this program on any platform. You may redistribute the source code of this program subject to the condition that you do not first modify it in any way. You may distribute binary versions of this program so long as they were compiled from unmodified source code. There is no charge for using this software. You may not charge others for the use of this software.
Copyright (C) 2002 David Mathog and Caltech.
David Mathog, Biology Division, Caltech <mathog@caltech.edu>
execinput (1) | 21 Feb 2002 |