Diego de Lima <[EMAIL PROTECTED]> wrote:
> The touch command sets timestamps terminated in 1, 3, 5, 7 or 9 incorrectly!
>
> # touch -t "200404231712.27" /mnt/autobk/portal/public.tgz
> # ls --time-style=full-iso -l /mnt/autobk/portal/public.tgz
> -rwxr-xr-x1 root root 778240 2004-04-2
I need all files in all sub-directories to have today's timestamp.
find . -type f -exec touch {} \;
Should do the trick.
___
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils
Roy Finke wrote:
> Are there any plans to add the -R (recursive) option to the touch command?
> I need all files in all sub-directories to have today's timestamp.
I can't speak for the maintainers but I can't see any reason to add
'find' capability to the utilities. It just bloats those commands.
A Ottenheimer <[EMAIL PROTECTED]> wrote:
> From "man touch"
>
>>DESCRIPTION
>> or : ../src/touch [-acm] MMDDhhmm[YY] FILE...
>> (obsolescent)
>
>
> should be
>
>>DESCRIPTION
>> or : ../src/touch [-acm] [CC][YY]MMDDhhmm FILE...
>>
This function may not be that generally useful. I write security software
and it helps give the software hints if I can adjust the dates on the
symbolic links. That way I don't have 2 minute cron jobs running every
hour.
If I wrote an ltouch would it be useful enough to include in the source
> This really isn't a bug, but it looks like there isn't a way to touch a
> symbolic link.
That is generally true of BSD like systems which implement symbolic
links. Actions upon symlinks pass through the symlink and act upon
the target of the symlink.
> If you do a
>
> ln -s foo.tgz foo
>
> I just noticed that in 4.0, I can no longer do a transerver touch on all
> child directories. I want to touch a directory and all the files in it and
> in its sub-directories.
>
> Should it be "touch -R *" ?
>
> Is the functionality removed or am i just not getting the right commands?
I don
> From: Jim Meyering <[EMAIL PROTECTED]>
> Date: 17 Mar 2001 10:52:34 +0100
>
> I was a little reluctant to add it there, since that usage is obsolescent --
> but support for that form is not going away
Actually, the latest POSIX draft no longer allows an implementation to
support that obsol
> I found a behaviour of touch that I don't understand (It seems to me a
> bug, at least a bug for the documentation) regarding the access,
> modifications and change times attributes of a file.
The touch info page could be more explicit about this. Right now it
only says it changes the access
Paul Eggert <[EMAIL PROTECTED]> writes:
>Date: Thu, 28 Oct 1999 09:49:07 +0200
>From: "Gabor Z. Papp" <[EMAIL PROTECTED]>
>I would like, that touch modify also the date of the link
>itself, not just the linked file's date.
> It can't be done, at least not on Solaris. There's no
10 matches
Mail list logo