I have a folder full of text files. I need to append the same block of text to each of them (and of course overwrite the original file).
I was wondering what the co
very simply one which worked well for me
#!/bin/sh FILES="./files/*" for f in $FILES do echo '0000000' | cat - $f > temp && mv temp $f done