ls command refuses to give just folder names per command line switch
I have been trying to figure out why ls will not return folder names
only as per the man page's insistence that it will with the -d switch.
Here is output from Terminal
ray@RaysComputer:~/links$ ls --directory
No sub folders returned from the ls command. Yet when I run the
following, you can see the first few lines are all folders that clearly
exist in that Directory.
ray@RaysComputer:~/links$ ls -a --classify --group-directories-first
What I'm trying to get ultimately is a recursive list of all files of a
certain type in all sub folders of the current folder, including the
current folder. But when I add the --recursive command, and include a
*.html on the end, all I get is a list of the .html files in the current
folder, and none from any of the sub folders. Like so -
ray@RaysComputer:~/links$ ls -x -1 --recursive *.html
Comparison of Windows and Ubuntu Linux.html
Computer Tips and Tutorials.html
How To Install Ubuntu.html
How to speed up and organize tab switching in Firefox.html
Internet Radio Stations.html
Internet Speed Test.html
Is The Eiffel Tower Taller than the Space Needle.html
Learning Linux References.html
Linux distributions and documents.html
Offline Browsing Tools.html
Skinning Web Sites.html
The Future of Technology.html
Troubleshooting and fixing Windows.html
Troubleshooting HiJackThis Log Files.html
Troubleshootings Tools for Windows.html
Visual Basic Tips.html
Web Site Monitor.html
Where to go to get help.html
Why Dual Boot.html
Windows XP SP3 installation.html
Note that none of that output came from any of the sub folders, so
--recursive is not staying the course. I can get a recursive listing,
but it includes all file types, and the sub folder names in it's output.
Is there any way to get just the sub folder names? Is there any way to
get a recursive listing of all of only one file type, with their
relative path to the current folder included on each line?
Thanks for any help you can be, Ray Parrish
The Future of Technology.
Ray's Links, a variety of links to usefull things, and articles by Ray.
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users