Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 2, 2012 01:47
Show Gist options
  • Save NapoleonWils0n/3998140 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/3998140 to your computer and use it in GitHub Desktop.
bash: brackets
#!/bin/sh
#Square brackets—matches any of a series of characters in a filename.
#For example, ls a[rn]t.jpg matches art.jpg and ant.jpg, but does not match aft.jpg.
#If the first character is a caret (^), it matches every character except for the characters l
ls a[rn]t.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment