* [mdk-re] index.php
@ 2001-09-25 19:06 Michael Bykov
2001-09-25 21:21 ` HB
2001-09-26 2:53 ` [mdk-re] index.php Mikhail Zabaluev
0 siblings, 2 replies; 3+ messages in thread
From: Michael Bykov @ 2001-09-25 19:06 UTC (permalink / raw)
To: mandrake
Поскажите grep чтобы найти все папки без файла index в данном
(/www/htdocs) дереве?
--
M.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [mdk-re] index.php
2001-09-25 19:06 [mdk-re] index.php Michael Bykov
@ 2001-09-25 21:21 ` HB
2001-09-26 2:53 ` [mdk-re] index.php Mikhail Zabaluev
1 sibling, 0 replies; 3+ messages in thread
From: HB @ 2001-09-25 21:21 UTC (permalink / raw)
To: Michael Bykov
Tue, Sep 25, 2001 at 07:08:09PM +0400, Michael Bykov wrote:
> Поскажите grep чтобы найти все папки без файла index в данном
> (/www/htdocs) дереве?
$ find /www/htdocs -type d -exec perl -le '<{}/index.*> or print "{}"' \;
^^^^^^^
При желании, заменить index.* на index.php или что угодно по вкусу.
--
HB
^ permalink raw reply [flat|nested] 3+ messages in thread
* [mdk-re] Re: index.php
2001-09-25 19:06 [mdk-re] index.php Michael Bykov
2001-09-25 21:21 ` HB
@ 2001-09-26 2:53 ` Mikhail Zabaluev
1 sibling, 0 replies; 3+ messages in thread
From: Mikhail Zabaluev @ 2001-09-26 2:53 UTC (permalink / raw)
To: mandrake
Hello Michael,
On Tue, Sep 25, 2001 at 07:08:09PM +0400, Michael Bykov wrote:
>
> Поскажите grep чтобы найти все папки без файла index в данном
> (/www/htdocs) дереве?
Зачем grep?
IFS='
'
for d in `find /www/htdocs -type d -print`; do
[ "`echo $d/index.*`" = "$d/index.*" ] && echo $d
done
При стандартном значении опции nullglob в bash должно работать.
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
Without love intelligence is dangerous;
without intelligence love is not enough.
-- Ashley Montagu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-26 2:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25 19:06 [mdk-re] index.php Michael Bykov
2001-09-25 21:21 ` HB
2001-09-26 2:53 ` [mdk-re] index.php 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