issues
search
tamalsaha
/
learn-bash
0
stars
0
forks
source link
How to test that a variable starts with a string in bash?
#6
Open
tamalsaha
opened
4 years ago
tamalsaha
commented
4 years ago
[['s = operator takes a pattern in the right operand.
https://stackoverflow.com/a/4132551/244009
https://stackoverflow.com/a/2172367/244009
https://stackoverflow.com/a/31710142/244009
http://dev-maziarz.blogspot.com/2018/01/bash-how-to-check-if-string-starts-with.html
https://linuxize.com/post/how-to-check-if-string-contains-substring-in-bash/