Scroll to navigation

STEST(1) General Commands Manual STEST(1)

NAME

stest - filter a list of files by properties

SYNOPSIS

stest [-abcdefghlpqrsuwx] [-n file] [-o file] [file...]

DESCRIPTION

stest takes a list of files and filters by the files' properties, analogous to test(1). Files which pass all tests are printed to stdout. If no files are given, stest reads files from stdin.

OPTIONS

Test hidden files.
Test that files are block specials.
Test that files are character specials.
Test that files are directories.
Test that files exist.
Test that files are regular files.
Test that files have their set-group-ID flag set.
Test that files are symbolic links.
Test the contents of a directory given as an argument.
Test that files are newer than file.
Test that files are older than file.
Test that files are named pipes.
No files are printed, only the exit status is returned.
Test that files are readable.
Test that files are not empty.
Test that files have their set-user-ID flag set.
Invert the sense of tests, only failing files pass.
Test that files are writable.
Test that files are executable.

EXIT STATUS

0
At least one file passed all tests.
1
No files passed all tests.
2
An error occurred.

SEE ALSO

dmenu(1), test(1)

dmenu-5.2