uspTukubaiコマンドに関する様々な資料がここにあります。

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

Alphabetical list

(Video materials in preparation)

tagcomma(USP)

Name

tagcomma : Formats the specified field with commas every 3rd/4th digit.

Synopsis

Usage   : tagcomma <f1> <f2> ... <file>

Options : --ngthrough

          -4

Version : Tue Jan  9 09:02:34 JST 2024

Edition : 1

Description

Inserts commas after every 3rd/4th digit in the numeric text data

specified in the input file <file>.  The field to be formatted is

specified as arguments.

Example 1

$ cat data

Date Sales Orders

20060201 296030 6710000

20060202 1300100 3130000

20060203 309500 20100

20060204 16300 300100

20060205 41000 210000

20060206 771100 400000

$ tagcomma Sales Orders data

Date Sales Orders

20060201 296,030 6,710,000

20060202 1,300,100 3,130,000

20060203 309,500 20,100

20060204 16,300 300,100

20060205 41,000 210,000

20060206 771,100 400,000

Commas every fourth digit

$ tagcomma -4 Sales Orders data

Date Sales Orders

20060201 29,6030 671,0000

20060202 130,0100 313,0000

20060203 30,9500 2,0100

20060204 1,6300 30,0100

20060205 4,1000 21,0000

20060206 77,1100 40,0000

Note 1

Once you format a data file using tagcomma command, you can no

longer perform numerical operations on that data using sm2, divk or

other numerical commands.  Only format numbers with tagcomma command

after you have completed all calculations and are formatting the

data for output.

Note 2

Commas are not added after the decimal point.

Negative values are handled correctly.