Welcome
kmarcus,
It sort of seems like a question that has been asked before in many different ways, but in order for us to help, you would need to show us some sample data to include/exclude.
Additionally, when you say "then move to another folder", which of these do you mean? :-
- move the whole files that contain a recent or old date
- extract the matching records to a separate file and move that
- extract the matching records (removing from the original file) to a new file and move that
- something else?
I have a few general to questions pose in response first:-
- Is this homework/assignment? There are specific forums for these.
- What have you tried so far?
- What output/errors do you get?
- What OS and version are you using?
- What are your preferred tools? (C, shell, perl, awk, etc.)
- What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly,
What have you tried so far?
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
We're all here to learn and getting the relevant information will help us all.
Kind regards, and hoping to help,
Robin