Skip to content

Instantly share code, notes, and snippets.

View s10wen's full-sized avatar
💭
🦄

Simon Owen s10wen

💭
🦄
View GitHub Profile
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