sd_validate
validate a variable content against a regular expression
Module:
Component:
Distribution:
Synopsis
sd_validate VARIABLE_NAME REGULAR_EXPRESSION*
Description
validate a variable content against a regular expression
Exit status
Exits 0 on success, and > 0 if an error occurs.
Examples
sd_validate STORE "^http"
- test that the content of the variable named
STORE
begins withhttp
Availability
Since SDaaS 4
Last modified February 4, 2024: First commit for 4.0 (619a40d)