for example I type
ls -altr | grep "23 Dec"
so it will show files for 23 Dec only and I want to use grep for them, like
ls -altr | grep "23 Dec" | xargs grep -l "some_string"
but this doesn't work)
How to do that?
If you want to use your way, try maybe:
In the find command, don't forget the escaped semicolon. Also note that find works much the same way as
If you were trying to find some files, that was modified on a specific date,
there would be no need for pipe, (ls uses modify time by default)