Horje
bash check if string starts with substring Code Example
bash check if string starts with substring
# Original source: Advanced Bash Scripting Guide (http://tldp.org/LDP/abs/html/comparison-ops.html)
# The == comparison operator behaves differently within a double-brackets
# test than within single brackets.

[[ $a == z* ]]   # True if $a starts with a "z" (wildcard matching).
[[ $a == "z*" ]] # True if $a is equal to z* (literal matching).




Shell

Related
firebase deploy with token Code Example firebase deploy with token Code Example
ubuntu install geckodriver Code Example ubuntu install geckodriver Code Example
read a file in batch Code Example read a file in batch Code Example
maven test with debug Code Example maven test with debug Code Example
install scrollmagic npm Code Example install scrollmagic npm Code Example

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