inux list files regex code example
Example: how to add regex to ls
# Use find with -maxdepth 1 to act as ls
# '' contain the regex
find . -maxdepth 1 -regex '*.png'
# Use find with -maxdepth 1 to act as ls
# '' contain the regex
find . -maxdepth 1 -regex '*.png'