Re: list files but not directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/21/2009 03:35 PM, William Case wrote:
Hi;

On Fri, 2009-08-21 at 13:36 +0100, Albert Graham wrote:
On 08/21/2009 12:58 PM, ann kok wrote:
Hi

any way to list files but not directory

Thank you


        __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/


Seems like a very reasonable request and its a shame that ls does not
provide such an option (which I guess would be an extension to the -A
option)


I remember asking about this four or five years ago when I first started
using Linux (RedHat). (It was the first question I asked on the users
mailing list.)

Now that I am familiar with 'find' and 'grep' etc. I no longer worry
about it.  However, 'ls' is probably the first commandline command a
beginner learns.  It seems illogical, that 'ls' wouldn't have a flag
that just shows files when it has a flag for directories.  It can cost
newbies hours looking for a solution that isn't there.

Couldn't the shell maintainers just add an appropriate flag to show
files only?


It would probably be easier to hack the ls source and extend the -A functionality.




--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux