Hi Sir/Madam
I have a file data.txt like below
file_name date_of_creation
x 2/10/2012
y 8/11/2010
z 11/3/2013
a 2/10/2013
b 3/10/2013
c 2/10/2012
d 3/10/2012
e 9/11/2010
Now i need to prepare a script where i can pass the 2 dates (as in above format only) as arguments and i need to get the files created between those 2 dates.
eg: scriptname.sh 2/10/2012 11/3/2013
output should be
x 2/10/2012
c 2/10/2012
d 3/10/2012
z 11/3/2013
Could anyone please help me in this?
I stuck up with how to read dates as arguments and how to grep the date between those dates.