Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bash regex example
for i in *; do if [[ $i =~ ^[0-9]{1,2}$ ]]; then echo $i; fi ; done
@dmarrazzo

This comment has been minimized.

Copy link
Owner Author

commented Oct 14, 2015

How to list files that starts with 2 numbers. bash regex usage example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.