bash script to append string to multiple files in same directory bash script to append string to multiple files in same directory bash bash

bash script to append string to multiple files in same directory


Nevermind, I figured it out.

#!/bin/shfor f in *.html ; do    echo "test" >> $fdone


tee is good for these sorts of things.

echo "test" | tee -a *.html


sed -i.bak '$a append' *.html