Pythoncode:
for name in glob.glob(first_argument):
print(name)
Bash:
>$ ls
> a.txt b.txt c.txt program.py
>$ ./program.py *.txt
> a.txt
Somehow glob recognises the pattern, but will only find one match. However, If i write:
>$ ./program.py "*.txt"
> a.txt
> b.txt
> c.txt
I dont get it. Try to find answers in documentation, but couldnt manage. Anyone knows why? Thanks