Skip to content

Instantly share code, notes, and snippets.

@devynspencer
Created October 7, 2015 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devynspencer/27962c4b8896c1aaf338 to your computer and use it in GitHub Desktop.
Save devynspencer/27962c4b8896c1aaf338 to your computer and use it in GitHub Desktop.
Examples of the bash command.
# find all files with the executable bit set
find /dir -type f -executable
# find any files with the `.bmp` or the `.txt` file extension
find /home/user/Desktop -name '*.bmp' -o -name '*.txt'
# add the above to an array for later reference
list="$(find /home/user/Desktop -name '*.bmp' -o -name '*.txt')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment