ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maksim Otstavnov <maksim@otstavnov.com>
To: community@lists.altlinux.org
Subject: Re[2]: [Comm] Рекурсивное изменение времени файлов/каталогов...
Date: Fri, 10 Feb 2006 16:04:53 +0300
Message-ID: <12420324453.20060210160453@otstavnov.com> (raw)
In-Reply-To: <43EC7E00.000001.03733@webmail11.yandex.ru>

Hello nezhil,

Friday, February 10, 2006, 2:50:24 PM, you wrote:

n> Только   вот   каталоги,  в имени которых
n> присутствует  пробел  (./tes/topic files)
n> были  пропущены и touch почему-то пытался
n> вместо  прохода  каталога  с  этим именем
n> создать   файл   с  первой  частью  имени
n> каталога  в  имени  которого есть пробелы
n> (пытался   создать   файл  ./tes/files  и
n> создал  его  с  нулевым  размером), а вот
n> в  этот  каталог touch так и не заходил.В
n> чём проблема?

В данном случае Вам, скорее всего, поможет указание ключа "-print0" в
команде "find" и "-0" (дефис-ноль) в команде "xargs" (эти ключи
изменяют разделитель имен файлов на нулевой символ, который не может
встречаться в именах файлов, и, соответственно, снимают проблемы с
пробелом и другими специальными символами в именах).

Объяснить, в чем проблема, в двух словах не удастся. Вам стоит
почитать какое-нибудь введение в язык оболочки.

Судя по последовательности Ваших вопросов, Вам может подойти глава 1
из брошюрки "Свободные программы и системы в школе"
(http://www.otstavnov.com/fsft/ISBN5-85593-146-3/index.html). До
"find" и "xargs" там изложение пока не доведено, но про имена и работу
с ними, вроде бы, изложено исчерпывающе.

-- 
-- Maksim




  reply	other threads:[~2006-02-10 13:04 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         ` Maksim Otstavnov [this message]
2006-02-10 15:08       ` ABATAPA
2006-02-10 11:14     ` ABATAPA
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=12420324453.20060210160453@otstavnov.com \
    --to=maksim@otstavnov.com \
    --cc=community@lists.altlinux.org \
    /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