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

if [[ "$HOST" =~ ^user.* ]]; then
    echo "yes"
fi

if [[ "$HOST" =~ ^user.*|^host1 ]]; then
    echo "yes"
fi




Shell

Related
psycopg2 error Code Example psycopg2 error Code Example
flutter devices Code Example flutter devices Code Example
for loop change increment matlab Code Example for loop change increment matlab Code Example
untrack folder git Code Example untrack folder git Code Example
npm install line awesome Code Example npm install line awesome Code Example

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