All Questions

1 question with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
294 views

Bash: Regex for comparing file path

I want to check if an input string matches whitelisted file paths, then only I want to perform some operation. I am doing something like this path1="mydir/**" path2="mydir/testing" [ [ "$path2" =~ "...