User Name
Password
AppleNova Forums » Genius Bar »

directory listing automation


Register Members List Calendar Search FAQ Posting Guidelines
directory listing automation
Thread Tools
intlplby
Veteran Member
 
Join Date: Dec 2004
 
2006-03-13, 05:57

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
euain
Member
 
Join Date: Jan 2005
Location: UK
 
2006-03-13, 06:36

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
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
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


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 20:12.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova