I have many file in a linux system some like this:
2019_03_01.text
2019_03_01.jpg
2019_03_01.png
2019_03_02.text
2019_03_02.jpg
2019_03_02.png
...
.
2019_09_21.text
2019_09_21.jpg
2019_09_21.png
.
I want to list only starting "2019_03" with extension ".text " in python. I run the command on the linux terminal as follows:
ls /path/[2019_03]* | grep /*.text
How can i do this in python?