Postisin

postisin
Arguments:
  • $1 - Value to search for

  • [$2…] - Values of array to search over

Output:

Exit code is 0 for found, 1 for not found

Bash CLI version of postisin

See also

postisin

postisin
Arguments:
  • $1 - Value to search for (can be regex)

  • [$2…] - Values of array to search over

Output:

Returns 0 for found, 1 for not found

Checks if any element in the array ends with a value

Example

postisin 3 11 22 33 44
# $? is 0
postisin 0 02 02 02
# $? is 1