Hello,
I wish to run find . -newermt '1 Sep 2023' I get a list of files, among them there are files that I which to exclude like ./._sync_9922e9acef00.db ./._sync_9922e9acef00.db-wal ./._sync_9922e9acef00.db-shm
I guess that I can exclude the files ./.sync*
How can I do this?
Thank
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com ===========================================================================
On 11/11/23 13:50, Patrick Dupre via users wrote:
Hello,
I wish to run find . -newermt '1 Sep 2023' I get a list of files, among them there are files that I which to exclude like ./._sync_9922e9acef00.db ./._sync_9922e9acef00.db-wal ./._sync_9922e9acef00.db-shm
I guess that I can exclude the files ./.sync*
"| grep -v" would be easiest, but you might be able to make the "-regex" argument work.
find . -newermt '1 Sep 2023" ! -name "._sync*" -ls
On Sat, Nov 11, 2023 at 3:57 PM Samuel Sieb samuel@sieb.net wrote:
On 11/11/23 13:50, Patrick Dupre via users wrote:
Hello,
I wish to run find . -newermt '1 Sep 2023' I get a list of files, among them there are files that I which to exclude like ./._sync_9922e9acef00.db ./._sync_9922e9acef00.db-wal ./._sync_9922e9acef00.db-shm
I guess that I can exclude the files ./.sync*
"| grep -v" would be easiest, but you might be able to make the "-regex" argument work. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue