I used both commands to list out the objects but the totals are different;
QSH Command Entry
ls
qsh_trace
$
cd /directory
$
ls -lR | wc -l
2067
$
find . -type f | wc -l
166
$
find -type f | wc -l
find: 001-3026 usage: find [-H | -L | -P] [-Xdx] [-f file] file ... [expression]
0
$
===>
Also, du -m gives me this msg;
$
du -m
qsh: 001-0019 Error found searching for command du. No such path or directory.
$
Thanks for your help,
Frank
find .
type f | wc -l
-----Original Message-----
From: DrFranken <midrange@xxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Mon, Apr 18, 2011 4:56 pm
Subject: Re: QSH help
A slightly more accurate file count would be found with find .
type f | wc -l
- Larry "DrFranken" Bolhuis
On 4/18/2011 4:21 PM, fbocch2595@xxxxxxx wrote:
Hi Folks, we had moved data off our IBMi but in a nice turn of events we've
ecided to put the data back on the i and in the IFS (some good news for a
hange). The data is in one directory but in dozens of sub directories of that
irectory. How could I use QSH to total up the number of objects in the sub
irectories and the total size of the objects? I haven't been asked for details
n the names and sizes of each object so if I could get a grand total of the
umber of objects and a grand total of the size of the objects that would
uffice for now.
As always, any info/help appreciated.
Thanks, Frank
-
his is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
o post a message email: MIDRANGE-L@xxxxxxxxxxxx
o subscribe, unsubscribe, or change list options,
isit:
http://lists.midrange.com/mailman/listinfo/midrange-l
r email: MIDRANGE-L-request@xxxxxxxxxxxx
efore posting, please take a moment to review the archives
t
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.