I was wondering if there is any way to make "ls" output the full path to the files it finds.
I know, there is the "find" command, which does just that. But my problem is that "find" does not output the dates on which the files where created, like "ls" does.
What I want to do is list all .JPG files in all subdirectories of my home folder which were created in Feb 2012 and which contain "IMG" in their name and write the files found into a .TXT file.
What I did so far is:
ls -hlR | grep Feb | grep 2012 | grep IMG | grep JPG >> febpix.txt
but that doesn't give the full path to the files that are found.
I also tried redirecting the contents of febpix.txt to "find" but the way I do it is not right, apparently:
ls -hlR | grep Feb | grep 2012 | grep IMG | grep JPG >> febpix.txt && cat febpix.txt | find >> febpix_fullpath.txt
Any ideas? ^^
Thank you in advance fort your advice!