Veteran Member
Join Date: Dec 2004
|
i am curious how this can be done.... i have a folder with lots of subfolders.... i want a script or automator action that copies the names of all the subdirectories to a text document that i can just put online
|
quote |
Member
Join Date: Jan 2005
Location: UK
|
You could certainly create a bash script to do this.. how much info do you want? Do you want to look recursively?
Just in this directory: Code:
ls -lF | awk '/^d/{print $NF}' > ~/Desktop/aTextFile.txt Recursive:Code:
find . -type d > ~/Desktop/aTextFile.txt I think you should be able to put an automator action around this as well.. |
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Python -- Directory content differences | Wickers | Programmer's Nook | 12 | 2006-03-19 13:32 |
Darwine Requirements | doublem9876 | Third-Party Products | 2 | 2006-02-26 10:58 |
Strange directory showing in Finder... | PKIDelirium | Genius Bar | 8 | 2005-12-20 22:46 |
Safari Cache Directory Question | miles9120111 | Genius Bar | 1 | 2005-11-17 18:31 |
How Can You Reconstruct the File Directory After Disk Utility? | SilverGoat | Genius Bar | 0 | 2005-03-06 08:27 |