Horje
bash "=~" example Code Example
bash "=~" example
$ [[ 45 =~ [0-9]+ ]] && echo "45 contains digits"
45 contains digits

$ [[ "hello" =~ [0-9]+ ]] && echo "hello doesnt contains digits"
$ [[ "hello" =~ [a-z]+ ]] && echo "hello contains alphabets"
hello contains alphabets




Shell

Related
git revert commit for single file Code Example git revert commit for single file Code Example
git show unpushed commits Code Example git show unpushed commits Code Example
clean linux Code Example clean linux Code Example
trailing whitespace git apply Code Example trailing whitespace git apply Code Example
mate on ubuntu 20.04 Code Example mate on ubuntu 20.04 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10