Input csv file is
23,54,one,tree,56,23,7/20/2017 17:00,iii,89
23,54,one,tree,56,23,7/20/2017 17:00,iii,89
23,54,one,tree,56,23,7/21/2017 17:00,iii,89
23,54,one,tree,56,23,7/30/2017 17:00,iii,89
Need shell command to get current date in format 7/20/2017
and then filter using the same date in a csv file from the last third column (column should not be detected from first or starting since comma varies and hence should be from last 3rd)
date +%m/%d/%Y
got today's in correct format as 10/25/2017date +%F
as a shorthand fordate +%Y-%m-%d