Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


10.3.31 convCsvSep (converts the delimiter of CSV data)

Syntax

convCsvSep  delimiter  [file-path-name]

Description

This command converts the delimiter of the CSV file specified for argument into another delimiter.

Arguments

delimiter

This command specifies the delimiter of destination.

file-path-name

This command specifies the path of the CSV file. If you do not specify the file path name, input from the standard input.

The size of CSV data that can be input is 100KB or less. If you input data larger than 100KB, the execution time of the job may become longer.

Output to the standard output

CSV data after converting the delimiter.

Return codes

Return code

Meaning

0

Normal termination

Not less than 1

Termination with an error

Examples

CSV data (data.csv)
name,value,id
Yokohama,200,1
Kawasaki,100,2

convCsvSep : data.csv
# The following message is output:
name:value:id
Yokohama:200:1
Kawasaki:100:2