Git Product home page Git Product logo

xtest's Introduction

NAME
	xtest - test file types and permissions of multiple files

SYNOPSIS
	xtest [-0bcdefghkLprSstuwx] [+bcdefghkLprSstuwx] [file ...]

DESCRIPTION
	xtest tests the file types and permissions of each specified
	file, if not file has been specified, a list file is read
	from stdin.

	All files that pass at least on of the tests are printed to
	stdout.

OPTIONS
	-0	Use NUL byte instead of <newline> to delimit files in
		both the input and the output.

	-e	File exists.

	-f | -d | -p | -hL | -S | -s | -b | -c
		File exists and is a (regular file [-f] | directory
		[-d] | named pipe [-p] | symbolic link [-h | -L] |
		socket [-S] | non-empty file [-s] | block special [-b] |
		character special [-c]).

	-k | -g | -u | -r | -w | -x
		File exists and has (sticky(1) [-k] | setgid(2) [-g] |
		setuid(4) [-u] | read(4) [-r] | write(2) [-w] |
		execute(1) [-x]) permissions.

	-t	Input is an file descriptor and is associated with a
		terminal.

	+e	File does not exist.

	+f | +d | +p | +hL | +S | +s | +b | +c
		File does not exist or is not a (regular file [+f] |
		directory [+d] | named pipe [+p] | symbolic link [+h |
		+L] | socket [+S] | non-empty file [+s] | block special
		[+b] | character special [+c]).

	+k | +g | +u | +r | +w | +x
		File does not exist or does not has (sticky(1) [+k] |
		setgid(2) [+g] | setuid(4) [+u] | read(4) [+r] |
		write(2) [+w] | execute(1) [+x]) permissions.

	+t	Input is not a file descriptor or is not associated
		with a terminal.

RATIONALE
	+-flags are included because it is too cumbersome to use
	comm(1).

	Only one test need to pass because this allows the user to
	represent the required condition in conjunctive normal form
	by pipe together multiple instances of xtest for conjunction.
	Disjunctive normal form is not as simple.

SEE ALSO
	test(1), find(1), xargs(1)

xtest's People

Contributors

maandree avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.