× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




I finally got the return on the find command...so there's a little wait but the total did return. I used qp2term and du -m
for the total size and this is what I got;

/QOpenSys/usr/bin/-sh

0.14 ./apprsl/C/hh
0.15 ./apprsl/C
0.45 ./apprsl/tt/jj/0
0.45 ./apprsl/tt/jj
0.46 ./apprsl/tt
37.16 ./apprsl
0.39 ./call_rec/T/E/Z
0.39 ./call_rec/T/E
0.40 ./call_rec/T
0.41 ./call_rec
0.04 ./edocs/hh/qq/W
0.05 ./edocs/hh/qq
0.06 ./edocs/hh
0.07 ./edocs
67.07 . === does that mean 67M or 67G?
$

Thanks for all your help folks!










-----Original Message-----
From: fbocch2595@xxxxxxx
To: midrange-l@xxxxxxxxxxxx
Sent: Wed, Apr 20, 2011 10:23 am
Subject: Re: QSH help



i, I issued the following command about 30 mins ago and it's still running. I
hink there's at least 100k files in the hundred or so subdirectories. I'm
uessing there's no faster way to get the info?
find /docs -type f | wc -l
Thanks





----Original Message-----
rom: Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
o: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
ent: Tue, Apr 19, 2011 5:05 pm
ubject: Re: QSH help

ello,
n 4/19/2011 3:05 PM, fbocch2595@xxxxxxx wrote:
> ls -lR | wc -l
2067
his will give you more than just the number of files. It'll include
rectories, plus it'll have extra lines for headings. (Which will add
your count.)
wouldn't use ls for this.
> find . -type f | wc -l
166
his will work better... but only includes "type f" (files). If that's
l you want, it's good.
> find -type f | wc -l
find: 001-3026 usage: find [-H | -L | -P] [-Xdx] [-f file] file ...
xpression]
0
ou've forgotten to specify the directory here. Syntax is:
ind DIRECTORY -type f | wc -l
o this finds everything in the current directory (and it's subdirectories):
ind . -type f | wc -l
nd this finds everything in the /tmp directory (and it's subdirectories):
ind /tmp -type f | wc -l
du -m
qsh: 001-0019 Error found searching for command du. No such path or directory.
here is no 'du' utility in QShell.
here's one in PASE, however... If you want to run the PASE one from
hell, try:
QOpenSys/usr/bin/du -m
or add /QOpenSys/usr/bin to your PATH. Or use QP2TERM instead of
hell where it'll be in the path by default.)
ersonally, I wouldn't use the -m flag. This causes the outputs to be
megabytes, which will result in all of your small files being
measurable. I'd probably use 'du -k' (kilobytes). But, I guess it
l depends on what you're looking for.

is is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
post a message email: MIDRANGE-L@xxxxxxxxxxxx
subscribe, unsubscribe, or change list options,
sit: http://lists.midrange.com/mailman/listinfo/midrange-l
email: MIDRANGE-L-request@xxxxxxxxxxxx
fore posting, please take a moment to review the archives
http://archive.midrange.com/midrange-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.