Re: Perl: "find -newer" in nativ

Andreas Fett <[email protected]>
Newsgroups gmane.user-groups.linux.dresden
Message-ID <Y+kB/[email protected]>
Hallo,

On Sun, Feb 12, 2023 at 03:48:36PM +0100, Hilmar Preuße wrote:
> Am 11.02.2023 um 16:36 teilte Andreas Fett mit:
> 
> Moin,
> 
> > Den Match für den Filenamen bekommste selber hin :-)
> > 
> Habe mich schwer getan, aber ich denke ich habs. Bin halt kein
> Programmierer. Hier nur der Teil, den ich geändert habe.
> ...


> find($wanted, glob("/var/log/icinga/logs"));
Dass glob() ist die Filenameexpansion wie in der Shell. Ich
hatte das drin, weil Dein ursprüngliches Beispiel dort
"/path/to/pen8*/pools/*/logf" verwendet hatte. Wenn der Pfad ohne
wildcards ist wie oben brauchst Du das glob() nicht.

Grüsse
Andreas
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEJ6Jq1qpfVQ9CLff4NMc/tuPtDEAFAmPpAfoACgkQNMc/tuPt
DEAJEA/7B22aWov81U+BXmcSWNvlwqhEI46zYnawtt+8iRIm59usxbumX/Uq/YI6
MRogc+0aMld3UIbJEeC5YCwodgld51d0tq3kk9siMMSAFfFxq0ykBD6L9+zfRYJu
bK0JznFMHFL4vG4n0bMULIiln1eNNVKqUM8eLp/JBVvoBncrN6y3l6LL9abJUAxf
9lnNIausIDLHHCRXTtIFFYQujj+iaECOhiwUQmZd0rQOC6ilvt3sRBPPfWC0nUE+
/KPSIHPA1HmxTJnykCLK/98TLj+pY7EBBkYPDkJ8DTCScEoZ/ncAXxJsM0y94+nt
QYsA+NJp7FPHo6OGNt7/GZvo81+fJOf2xk8nZtcITeJGt6mh0ATZimo01hl1dMyX
BcISZrQu7LLvOteZcK1vw/APwSWtkHgxjLISbnTiSHJfgSsR7bx16516BGGk8vyE
nHCjYOW1iOJEVTmUsZs3r1QnD0ftVpQWPArNjinZx1Bxkg/ON4N/4s6TVAzo432x
O4iIyWt0pa4GhjpKPrnW2Ir8j+wWn7+jkcymFZcvUOes57UJgJCcPZ0DtuyKVk8e
/QK+OWZbIfFszfY1L90u+Hb0ja6VAKkXW7ZWZN2gKIX9TYhRa48YQXz3VX6E/as1
GW8QmIdHCa+FvD/ThLA/SFO8eZu/kpFKu8VH0h1ekZdC3FgkEJI=
=oLlf
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.