#!/bin/sh TODAY=$(date +"%d %B %G") YESTERDAY=$(date +"%d %B %G" --date="yesterday") sed -i "s/Today/$TODAY/g" *.txt sed -i "s/Yesterday/$YESTERDAY/g" *.txt sed -i "s/\s\t/ /g" *.txt