Search Results

Search: Posts Made By: drodecker
101,571
Posted By drodecker
One line shell command to retrieve subdirectory names
Here is a brute force way to retrieve sub-directories in shell script:
ls -R | grep ":" | sed "s/://"

Any files named with a colon ":" will cause a false positive.
Showing results 1 to 1 of 1

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