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

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

Alphabetical list

(Video materials in preparation)

exist(USP)

Name

exist   : Checks if all files exist

Synopsis

Usage   : exist [-v] <file1> <file2> ...

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

Edition : 1

Description

Exits normally if every file <file1> <file2> ... exists, otherwise

it exits with an error.

If -v option is specified, filnames which is not exist are printed

to stderr.

Example 1

$ touch file.{1..5}

$ exist file.{1..5}

$ echo $?

0

Example 2

$ rm -f file.{1..6}

$ touch file.{1..5}

$ exist file.{1..6}

$ echo $?

1

Example 3

$ rm -f file.{1..6}

$ touch file.{1..5}

$ exist -v file.{1..6}

file.6

$ echo $?

1