Skip to content

Instantly share code, notes, and snippets.

@s10wen
Last active December 17, 2015 10:19
Show Gist options
  • Save s10wen/5593969 to your computer and use it in GitHub Desktop.
Save s10wen/5593969 to your computer and use it in GitHub Desktop.
arr=$(cat list.txt)
filen="<snippet>\n\t<content>x</content>\n\t<description>x</description>\n\t<scope>source.css</scope>\n\t<tabTrigger>x</tabTrigger>\n</snippet>"
for x in $arr
do
echo "$filen" | sed "s/x/$x/g" > $x.sublime-snippet
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment