DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash if else regex
#!/bin/bash if [[ "$date" =~ ^[0-9]{8}$ ]]; then echo "Valid date" else echo "Invalid date" fi
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#bash
#regex
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit