ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: ABATAPA <altlinux-community@yandex.ru>
To: nezhil@yandex.ru, ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Рекурсивное изменение времени файлов/каталогов...
Date: Fri, 10 Feb 2006 14:14:08 +0300
Message-ID: <200602101414.09013.altlinux-community@yandex.ru> (raw)
In-Reply-To: <43EC5DE6.000005.05840@soapbox.yandex.ru>

10 февраля 2006 12:33, nezhil написал:
> >find /dir | xargs что_вам_надо
>
> Я находясь в /home/user/Documents/test
> запустил:
> find /tes | xargs touch -t 198001010000.00 *
> tes - это каталог в
> /home/user/Documents/test, содержащий
> множество подкаталогов и файлов (для тестинга
> способов изменения даты/времени). Увы, ничего
> не получилось - дата и время не были

Один посоветовал, не подумав, другой сделал так же...
find просто так будет выдавать и каталоги, и файлы, но touch не будет 
обрабатывать имена с пробелами, и т.д.
И звездочка-то зачем?!
Совет первому: не показывайте свою неосведомленность! Проверяйте себя, прежде 
чем что-то советовать - заодно и сами научитесь!
Совет второму: ну читайте же документацию! Ведь она даже на русском есть! И 
внимательнее будьте!


Вам нужно:
find start_dir/ -print0 | xargs -0 touch -t 198001010000.00

Обработает и сложные имена - и каталогов, и файлов.
-- 
ABATAPA


  parent reply	other threads:[~2006-02-10 11:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09 17:22 nezhil
2006-02-09 18:14 ` Andrey Rahmatullin
2006-02-10  7:10 ` Michael Isachenkov
2006-02-10  9:33   ` nezhil
2006-02-10 10:03     ` Andrew Borodin
2006-02-10 11:50       ` nezhil
2006-02-10 13:04         ` Re[2]: " Maksim Otstavnov
2006-02-10 15:08       ` ABATAPA
2006-02-10 11:14     ` ABATAPA [this message]
2006-02-10 13:54       ` nezhil
2006-02-10 23:21       ` Andrey Rahmatullin
2006-02-11 13:30         ` [Comm] help install wine frop srpm - problema s zavisimostyami Mikhail Kuligin
2006-02-11 13:37           ` Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602101414.09013.altlinux-community@yandex.ru \
    --to=altlinux-community@yandex.ru \
    --cc=community@lists.altlinux.org \
    --cc=nezhil@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git