From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dor@ldc.net>
Date: Thu, 28 Oct 2004 10:59:30 +0300
From: "Dmytro O. Redchuk" <dor@ldc.net>
To: community@altlinux.ru
Subject: Re: [Comm] =?koi8-u?B?0NLPxM/M1sXOycUg1MXN?=
	=?koi8-u?B?2SDQ0s8=?= p7zip
Message-ID: <20041028075930.GF30516@ldc.net>
Mail-Followup-To: community@altlinux.ru
References: <200410261451.38780.trash4@yandex.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=koi8-u
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <200410261451.38780.trash4@yandex.ru>
User-Agent: Mutt/1.4.2.1i
X-BeenThere: community@altlinux.ru
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: community@altlinux.ru
List-Id: Mailing list for ALT Linux users <community.altlinux.ru>
List-Unsubscribe: <https://lists.altlinux.ru/mailman/listinfo/community>,
	<mailto:community-request@altlinux.ru?subject=unsubscribe>
List-Archive: <http://lists.altlinux.ru/pipermail/community>
List-Post: <mailto:community@altlinux.ru>
List-Help: <mailto:community-request@altlinux.ru?subject=help>
List-Subscribe: <https://lists.altlinux.ru/mailman/listinfo/community>,
	<mailto:community-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Thu, 28 Oct 2004 07:59:24 -0000
Archived-At: <http://lore.altlinux.org/community/20041028075930.GF30516@ldc.net/>
List-Archive: <http://lore.altlinux.org/community/>
List-Post: <mailto:mandrake-russian@linuxteam.iplabs.ru>

On Tue, Oct 26, 2004 at 02:51:38PM +0400, Guest007 wrote:
> ls -lR|grep \\-rw|wc -l
> 1649
> (Это кол-во файлов, если я правильно понял. А как правильно?)
find . -type f | wc -l

"find . -type f" ищет все файлы (и начинающиеся с точки -- ls -laR -- и с
любыми правами доступа.

Например, на моём домашнем каталоге:
[dima@libr dima]$ ls -lR  | grep \\-rw | wc -l
26873
[dima@libr dima]$ ls -laR | grep \\-rw | wc -l
29057
[dima@libr dima]$ ls -laR | grep \\-r  | wc -l
29212
[dima@libr dima]$ find . -type f | wc -l
29212

> 
> -- 
> WBR Guest007
> JID: guest007@jabber.ru

-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk