This is an old revision of the document!
Table of Contents
TMSS10SingleSpace
Convert a file of words into a file delimited by a single delimiter.
Synopsis
TMSS10SingleSpace [-d delimiter] [-g group]
Description
TMSS10SingleSpace will read in a file on stdin
and ensure the number of spaces between each word
is no more than one space and optionally replace the single space with an alternative delimiter then write
the record to stdout
.
Options
The options which apply to the TMSS10SingleSpace command are:
-d
a single character that is to be used as a delimiter. If this argument is not passed the delimiter will
be a single space.
-g
a filter value that is to be matched against each element that may have embedded strings so that the
string is considered a single element.
Notes
When using the group argument the program will execute code that is highly recursive and this will slow the program down considerably. This is probably still preferable to writing a custom pre-processor, but where the input file is large and CPU consumption is expensive or time is sensitive a pre-processor may be a better option.
Exit Status
zero Program has ended successfully. non-zero Program has not ended successfully.
Environment
This program does not use any environmental variables.
Examples
Example 1. TMSS10SingleSpace: Replace multiple spaces with a comma and group times. TMSS10SingleSpace -d “,” -g “??/??/???? ??:??” Files stdout Output Reports. TMSS10SingleSpace 2 stderr Diagnostic messages. stdin Program input.