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

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

Alphabetical list

(Video materials in preparation)

iscode(USP)

Name

iscode : Checks the number of digits in a numeric code.

Synopsis

Usage   : iscode <n> <string>

Version : Mon Jan 17 11:50:14 JST 2022

Edition : 1

Description

If <string> is a number with <n> digits, the command exits normally,

otherwise it exits with an error (exit status 1).

Example

$ iscode 8 20090101

$ echo $?

0

$ iscode 8 0101

$ echo $?

1

$ iscode 4 A123   <-- Must be numeric

$ echo $?

1