35
[Weekly thread] GNU+Linux help: ask anything!
(programming.dev)
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
Your
grep
is getting the output of find piped into it, so there's nothing in the find command itself (which has the-exec
in there) to filter it down so it applies to everythingfind
finds. You're filtering for 'Aug 18' afterfind
has already-exec
thecp -ltr
command.You probably want this:
Oh the files don't have the date in their names. Is -name still gonna work with 'Aug 18'? I'm parsing for the date shown by -ls.