#!/bin/bash # # Use like: # ./track.sh [source] [target] [log-interval] # # For example # ./track.sh source.txt target.log 4 # while true; do echo "================" >> $2; cat $1 >> $2; sleep $3s; done