Created
December 2, 2019 22:28
-
-
Save rafasoares/12171596d41f59d5eee4976eb1103535 to your computer and use it in GitHub Desktop.
Copies .sample/.example files, removing the .sample/.example extension
This file contains 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
# Copies .sample/.example files, removing the .sample/.example extension | |
function unsample() { | |
for file in **/?(.)*.@(sample|example); do | |
cp $file ${file/.(sample|example)/} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment