Created
October 7, 2015 05:09
-
-
Save devynspencer/27962c4b8896c1aaf338 to your computer and use it in GitHub Desktop.
Examples of the bash command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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