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
2015-08-24Changed hascontents to contentcount and change contentcount to a filter rather than bool
2015-08-24Added iscontainer and hascontents to the config file filter logic
2015-05-16Added environmental varialbe TMSSCANFILEUNQUALIFIED which will load and check volumes without Customer-ID and Media-ID qualifiers
2015-05-16Added environmental varialbe TMSSSCANFILENOPARSE which will presume scanfile items are only Volumes and not parse them, saving time
2015-05-16When loading scanfile from import definition, added CUSTOMER and MEDIA keywords to set defaults
2015-05-16When loading scanfile from import definition, changed keyword from VOLUME to BARCODE
2015-05-16Added TMSSUNQUALIFIEDVOLUME environmental variable which forces all barcodes to be printed without Customer-ID and Media-ID
2015-05-04Added support for AD passwords to all command line programs (check for environmental variable TMSSNOMD5)
2014-11-19Changed server argument parser to allow colon in password to support z/OS DD name files
2014-10-26Upgraded development environment from Visual Studio 2012 to Visual Studio 2013
cli/tmss10singlespace.txt · Last modified: 2022/05/30 23:55 by scunliffe