Skip to content

Instantly share code, notes, and snippets.

@spyesx
Created August 17, 2018 07:16
Show Gist options
  • Save spyesx/d8cc56b286ab5d37e2ebfbf755818286 to your computer and use it in GitHub Desktop.
Save spyesx/d8cc56b286ab5d37e2ebfbf755818286 to your computer and use it in GitHub Desktop.
Prepend and append text to files to wrap their content
#!/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
</template>
<script>
export default {
name: 'icon-'
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment