Let's assume I have done lots of work whittling down a list of files in a directory down to the 10 files that I am interested in. There were hundreds of files, and I have finally found the ones I need.
I can either pipe out the results of this (piping from
ls), or I can say I have an array of those values (doing this inside a script). Doesn't matter either way.
Now, of that list, I want to find only the files that were created yesterday.
We can use tools like
find -mtime 1 which are fine. But how would we do that with a subset of files in a directory? Can we pass a subset to
I can do this pretty easily with a
for loop. But I was curious if you smart people knew of a one-liner.