eo
Purpose:
-
Execute a specified command on a file.
Enter:
-
eo [file] <“command”>
Where:
-
file
Optional. Specify a file to use to get the arguments for “command”. If not specified, the arguments for “command” is read from ‘stdin’.
command
Specify the command to execute, reading its input from the specified file or from ‘stdin’. If the command has spaces in it it must quoted.
Example:
-
eo catlst cat
The above command executes the ‘cat’ command which writes its output to stdout. The name of the file(s) to “cat” are read from the file ‘catlst’. The command is executed once for each line that is read from the file ‘catlst’.ls -1tr amb* — eo “cat >>all_list”
The above outputs all files, one file per line that match the pattern “amb*”. The files are output in reverse time order. The output is piped in the command “eo”. The “eo” command causes the command “cat” to be run. The “cat” command will obtain its input via the pipe and append its output to the file “all_list”.