Search Results

Search: Posts Made By: tuns99
8,661
Posted By tuns99
So I should have used -d with the ls : find...
So I should have used -d with the ls :

find . -type d -exec ls -dF {} \;

to make the ls just display the dir and not the contents.

Thanks,
Mike.
8,661
Posted By tuns99
find -type d returning files as well as directories
Can anyone see why the following command returns all files and not just the directories as specified?

find . -type d -exec ls -F {} \;

Also tried
find . -type d -name "*" -exec ls -F {} \;...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy