Examples of useful Linux commands my brain likes to forget.

Add an extra line to a number of files.

echo "LINE TO ADD"  | tee -a FILE*

Simple for loop

This is useful if you want to run the same command on a list of IP addresses

Here we have a file called ip-list

192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5

And here we have the script that will loop through the list if IP addresses and perform a specific command

#!/bin/bash
machine='ip-list'
machines=`cat $machine`
echo Starting
for line in ${machines}; do
    echo ${line}
    scp -i privatekey file root@${line}:/folder/you/want/
done