* exact syntix of find + touch ??
@ 2000-02-11 5:00 Mathieu Millet
2000-02-11 5:00 ` Thomas Jaeger
0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Millet @ 2000-02-11 5:00 UTC (permalink / raw)
Hi everyone,
I have just installed the RH 6.1 on my LX164. Despite the fact that the date
and time is correct, some files are dated in 2020 !!
I don't remember the exact command to type to touch every postdated files.
Can someone help me?
it's something like (in / directory) :
touch now ;
find -newer now -exec "touch {};"
This previous line doesn't work.
Thanks for any help.
Bye, Mathieu.
--
--
Mathieu MILLET, TelecomINT, 3eme annee
Institut National des Telecommunications, Evry, France
mailto:llihtam@minet.net ; mailto:mathieu.millet@int-evry.fr
----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: exact syntix of find + touch ??
2000-02-11 5:00 exact syntix of find + touch ?? Mathieu Millet
@ 2000-02-11 5:00 ` Thomas Jaeger
2000-02-11 5:00 ` Tony Hammitt
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Jaeger @ 2000-02-11 5:00 UTC (permalink / raw)
Mathieu Millet <llihtam@minet.net> wrote:
>find -newer now -exec "touch {};"
Try:
find -newer now -exec touch {} \;
Thomas
------------------------------------------------------------------------
Thomas Jaeger <jaeger@mathematik.tu-darmstadt.de>
pgp-key : ftp://linux.mathematik.tu-darmstadt.de/pub/linux/people/jaeger
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: exact syntix of find + touch ??
2000-02-11 5:00 ` Thomas Jaeger
@ 2000-02-11 5:00 ` Tony Hammitt
0 siblings, 0 replies; 3+ messages in thread
From: Tony Hammitt @ 2000-02-11 5:00 UTC (permalink / raw)
Thomas Jaeger wrote:
>
> Mathieu Millet <llihtam@minet.net> wrote:
> >find -newer now -exec "touch {};"
>
> Try:
> find -newer now -exec touch {} \;
>
> Thomas
>
> ------------------------------------------------------------------------
> Thomas Jaeger <jaeger@mathematik.tu-darmstadt.de>
> pgp-key : ftp://linux.mathematik.tu-darmstadt.de/pub/linux/people/jaeger
> ------------------------------------------------------------------------
That way is a bit slow, try:
find / -newer now -print | xargs touch
xargs will put as many filenames as it can on one command line
then execute the command, then repeat. It's _much_ faster than
find -exec
Regards,
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-11 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-11 5:00 exact syntix of find + touch ?? Mathieu Millet
2000-02-11 5:00 ` Thomas Jaeger
2000-02-11 5:00 ` Tony Hammitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox