logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

stest - filter a list of files by properties

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.

Exit Status

0      At least one file passed all tests.

       1      No files passed all tests.

       2      An error occurred.

Name

       stest - filter a list of files by properties

Options

-a     Test hidden files.

       -b     Test that files are block specials.

       -c     Test that files are character specials.

       -d     Test that files are directories.

       -e     Test that files exist.

       -f     Test that files are regular files.

       -g     Test that files have their set-group-ID flag set.

       -h     Test that files are symbolic links.

       -l     Test the contents of a directory given as an argument.

       -nfile
              Test that files are newer than file.

       -ofile
              Test that files are older than file.

       -p     Test that files are named pipes.

       -q     No files are printed, only the exit status is returned.

       -r     Test that files are readable.

       -s     Test that files are not empty.

       -u     Test that files have their set-user-ID flag set.

       -v     Invert the sense of tests, only failing files pass.

       -w     Test that files are writable.

       -x     Test that files are executable.

See Also

dmenu(1), test(1)

                                                    dmenu-5.2                                           STEST(1)

Synopsis

stest [-abcdefghlpqrsuwx] [-nfile] [-ofile] [file...]

See Also