Answers for "how to add regex to ls"

21

how to add regex to ls

# Use find with -maxdepth 1 to act as ls
# '' contain the regex
find . -maxdepth 1 -regex '*.png'
Posted by: Guest on May-01-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language