How to filter the output of ls command to display only files created in February?

Amr Ragaey picture Amr Ragaey · Apr 20, 2015 · Viewed 56.9k times · Source

For Linux OS, How to filter the output of ls command in terminal to display only files created in February?

Answer

Amr Ragaey picture Amr Ragaey · Apr 23, 2015
touch --date "yyyy-mm-dd" /tmp/start
touch --date "yyyy-mm-dd" /tmp/end
find /my/path -type f -newer /tmp/start -not -newer /tmp/end

or

ls -l  | grep 'yyyy-mm-dd'