I have a file and each line has some info and a date,so what I want is to print the lines with dates after a given date. I use this awk command
sort -t$'|' -k5 $2 | awk -F '|' -v DatedAfter=$4 '!/^#/ && $5>=DatedAfter {print $0}'
Where $4 is a date in DD/MM/YYYY format given and $2 is the file I use in the format bellow.
1099511628908|Chen|Wei|female|02/08/1989|2010-05-24T20:52:26.582+0000|27.98.244.108|Firefox
1099511633435|Smith|Jack|male|19/04/1978|2010-05-26T03:45:11.772+0000|50.72.193.218|Internet Explorer