* [mdk-re] скрипт на баше
@ 2002-01-18 12:55 alex
2002-01-18 12:59 ` Vyt
2002-01-18 13:46 ` Peter V.Saveliev
0 siblings, 2 replies; 4+ messages in thread
From: alex @ 2002-01-18 12:55 UTC (permalink / raw)
To: mandrake-russian
Здравствуйте!
Есть проблема изменения атрибутов файлов и каталогов отдельно! в неком
дереве. Делаю это например так:
find -type d |xargs chmod 755
Если встречаются директории с пробелами в названии, то они пропускаются
:((( Может кто-нибудь знает, как это обойти.
(Переименовать никак нельзя.)
Заранее спасибо,
Алекс.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [mdk-re] скрипт на баше
2002-01-18 12:55 [mdk-re] скрипт на баше alex
@ 2002-01-18 12:59 ` Vyt
2002-01-18 13:46 ` Peter V.Saveliev
1 sibling, 0 replies; 4+ messages in thread
From: Vyt @ 2002-01-18 12:59 UTC (permalink / raw)
To: mandrake-russian
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
On 18 Jan 2002 13:10:50 +0300
alex <bee@fbm.msu.ru> wrote:
> Здравствуйте!
>
> Есть проблема изменения атрибутов файлов и каталогов отдельно! в неком
> дереве. Делаю это например так:
> find -type d |xargs chmod 755
> Если встречаются директории с пробелами в названии, то они пропускаются
> :((( Может кто-нибудь знает, как это обойти.
> (Переименовать никак нельзя.)
find . -type d -exec \ chmod 755 '{}' \;
<skipped>
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [mdk-re] скрипт на баше
2002-01-18 12:55 [mdk-re] скрипт на баше alex
2002-01-18 12:59 ` Vyt
@ 2002-01-18 13:46 ` Peter V.Saveliev
2002-01-19 2:08 ` [mdk-re] " Mikhail Zabaluev
1 sibling, 1 reply; 4+ messages in thread
From: Peter V.Saveliev @ 2002-01-18 13:46 UTC (permalink / raw)
To: mandrake-russian
On 18 Jan 2002 13:10:50 +0300
"alex" <bee@fbm.msu.ru> wrote:
> Здравствуйте!
>
> Есть проблема изменения атрибутов файлов и каталогов отдельно! в неком
> дереве. Делаю это например так:
> find -type d |xargs chmod 755
> Если встречаются директории с пробелами в названии, то они пропускаются
> :((( Может кто-нибудь знает, как это обойти.
> (Переименовать никак нельзя.)
find -type d -print0 | xargx -0 chmod 755
Сам наступал на то же ;)
Петр.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [mdk-re] Re: скрипт на баше
2002-01-18 13:46 ` Peter V.Saveliev
@ 2002-01-19 2:08 ` Mikhail Zabaluev
0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Zabaluev @ 2002-01-19 2:08 UTC (permalink / raw)
To: mandrake-russian
Hello Peter,
On Fri, Jan 18, 2002 at 01:48:52PM +0300, Peter V.Saveliev wrote:
>
> On 18 Jan 2002 13:10:50 +0300
> "alex" <bee@fbm.msu.ru> wrote:
>
> > Здравствуйте!
> >
> > Есть проблема изменения атрибутов файлов и каталогов отдельно! в неком
> > дереве. Делаю это например так:
> > find -type d |xargs chmod 755
> > Если встречаются директории с пробелами в названии, то они пропускаются
> > :((( Может кто-нибудь знает, как это обойти.
> > (Переименовать никак нельзя.)
>
> find -type d -print0 | xargx -0 chmod 755
И, наконец,
find -type d | IFS='
' xargs chmod 755
Но это скорее в порядке общей эрудиции :)
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
brain, v: [as in "to brain"]
To rebuke bluntly, but not pointedly; to dispel a source
of error in an opponent.
-- Ambrose Bierce, "The Devil's Dictionary"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-19 2:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-18 12:55 [mdk-re] скрипт на баше alex
2002-01-18 12:59 ` Vyt
2002-01-18 13:46 ` Peter V.Saveliev
2002-01-19 2:08 ` [mdk-re] " Mikhail Zabaluev
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