Unix Match. Part 2 Unix Match. Part 2
The mission is in Reviewing Mode. You can't see the solutions Leader Board, but you can see other user solutions through the Random Review after you solve the mission.

You need to find out if the given unix pattern matches the given filename.

Here is a small table that shows symbols that can be used in patterns

[seq] matches any character in seq
[!seq] matches any character not in seq

Input: Two arguments. Both are strings.

Output: Bool.


unix_match('somefile.txt', 'somefile.txt') == True
unix_match('1name.txt', '[!abc]name.txt') == True
unix_match('log1.txt', 'log[1234567890].txt') == True

How it is used: in the unix-shell

Precondition: 0 < len(strings) < 100