Last active
January 3, 2016 14:19
-
-
Save Osse/8475246 to your computer and use it in GitHub Desktop.
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
partial='confirm/sample_request_' | |
# Put all matches into array | |
files=("$partial"*.json) | |
# Strip the leading stuff | |
tmp=("${files[@]#$partial}") | |
# Strip the trailing stuff | |
keys=("${tmp[@]%.json}") | |
for key in "${keys[@]}" | |
do | |
vim -O "$partial$key".json "$partial$key".html | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment