× 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.



2009/6/2 <rob@xxxxxxxxx>:
I am having an issue with this:
find . -type f -size +20M -exec ls -l {} \; | awk '{ print $9 "," $5 ","
$6"/"$7"/"$8 }' > /rob/bigfiles2.csv
 find: 001-2190 The trailing character +20M for option -size is not
valid.
 $

Searching a few man pages doesn't show it as wrong.
Is this one of those obscure things where the problem isn't with the +20M
but it's really with something way after that?

The find in QShell doesn't support many of the various size suffixes
you find in GNU find. From IBM's QShell manual[1]:

-size n[c]
True if the file’s size, rounded up, in 512-byte blocks is n.
If n is followed by c, then the primary
is true if the file’s size is n bytes.

which equate to the GNU 'b' & 'c' suffixes. I installed the GNU
findutils package[2] in PASE to get round this issue.

Regards, Martin
[1] http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzahz/rzahz.pdf
[2] http://computer-refuge.org/classiccmp/aixpdslib/pub/findutils/RISC/5.3/exec/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.