convert.sh 184 B

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