Append a line to each file using bash command

I wanted to add one line which is the vim modeline to each LaTeX file with extension of .tex.

for f in *.tex; do echo % vim: fdm=expr >> $f; done

View Comments

comments powered by Disqus