Created
March 3, 2022 21:42
-
-
Save dougpagani/2e06586cd3db85cf284c2fb7ea77418c to your computer and use it in GitHub Desktop.
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
# obviously need to modify this, just an example | |
examples=($(find "$EXAMPLE_FILES_DIR" -iname "*.${extension}")); | |
PS3='Select which file: '; | |
select opt in "${examples[@]}"; | |
do | |
vim "${opt}" && printf "${opt}" | pbcopy && break; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment