opendir() and @dirlist()
Bob Stockler
bob at trebor.iglou.com
Wed Nov 16 16:38:41 PST 2005
Enrique Arredondo wrote (on Wed, Nov 16, 2005 at 02:59:50PM -0800):
[snip]
| Very Nice!!! , It shows all of the files no matter the size! even
| directories.
A lot easier to use, and more versitle, than using the
filePro specific commands, isn't it? Thank the authors
of filePro for these other features, applicable to any
files on your system.
I still don't know what OS you're on, but if you're on
UNIX or Linux it's susceptible to a lot of variations.
For instance, the SYSTEM argument could be modified:
1 - To eliminate directories:
ls -l | grep -v '^d' | awk '{ print $NF }'
2 - To return only directories:
ls -l | grep '^d' | awk '{ print $NF }'
3 - To put output in time order, rather than name order:
ls -t
ls -rt
and any more of the options you might find useful.
Bob
PS - For nit pickers - I know that the use of grep in a
pipeline to awk is wasteful. I used grep in the
examples above for brief clarity of the ideas.
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).
More information about the Filepro-list
mailing list