Created
June 30, 2022 12:01
-
-
Save juliendargelos/afe86c2527191416285c608ec16b8f9d to your computer and use it in GitHub Desktop.
Remove or change a file extension in a bash string
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
file=index.js | |
"${file%.*}.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment