#!/bin/bash
d=$(date --date '3 years ago 3 months ago' +%y%m%d%H%M%S)
echo $d
while read line; do
echo 
	if [ ${line:0:1} == 'R' ]; then
		if [[ 10#${line:2:12} -lt 10#${d} ]]; then
			echo ${line}
		fi
	fi
done
