(Video materials in preparation)
exist : Checks if all files exist
Usage : exist [-v] <file1> <file2> ...
Version : Mon Jan 17 11:50:14 JST 2022
Edition : 1
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.
$ touch file.{1..5}
$ exist file.{1..5}
$ echo $?
0
$ rm -f file.{1..6}
$ touch file.{1..5}
$ exist file.{1..6}
$ echo $?
1
$ rm -f file.{1..6}
$ touch file.{1..5}
$ exist -v file.{1..6}
file.6
$ echo $?
1