Created
August 17, 2018 07:16
-
-
Save spyesx/d8cc56b286ab5d37e2ebfbf755818286 to your computer and use it in GitHub Desktop.
Prepend and append text to files to wrap their content
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
#!/bin/sh | |
for file in *.vue; do | |
cat prepend.txt $file >> $file.$$ | |
mv $file.$$ $file | |
done | |
for file in *.vue; do | |
cat $file append.txt >> $file.$$ | |
mv $file.$$ $file | |
done |
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
</template> | |
<script> | |
export default { | |
name: 'icon-' | |
} | |
</script> |
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
<template> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment