TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cli:tmss10singlespace

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.
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.

Files

  • stdout Output Reports.
  • stderr Diagnostic messages.
  • stdin Program input.

Examples

Replace multiple spaces with a comma and group times.

TMSS10SingleSpace -d "," -g "??/??/???? ??:??"
Changelog
Cannot load rss feed.
cli/tmss10singlespace.txt · Last modified: 2022/05/30 23:55 by scunliffe