Directory Listing

bwana

MyBroadband
Super Moderator
Joined
Feb 23, 2005
Messages
97,635
Reaction score
37,749
Location
Plz
Anyone know of a simple way to do this? I tried ls -R in terminal but it went too deep and listed all of the package contents for my aperture libraries.
 
What's wrong with:
Code:
ls

MacBook-Pro:~ gregory$ ls
AdminPrints				Public
DL to sort				SMSBU-20110902.csv
Desktop					SanDisk Cruzer Media.dmg
Developer				Scorpio
DivXDVD					Screen shot 2010-09-06 at 18.39.37 .tif
Documents				Sites
...etc...

Need more? Don't think I understand the question...
maybe ls -laF to get an MSDOS like DIR?

Code:
MacBook-Pro:~ gregory$ ls -laF
total 6572296
drwxr-xr-x+ 52 gregory  staff        1768 Sep  2 14:40 ./
drwxr-xr-x   7 root     admin         238 Feb  8  2011 ../
-rw-------   1 gregory  staff           3 Jul 23  2010 .CFUserTextEncoding
-rw-r--r--@  1 gregory  staff       21508 Sep  3 11:15 .DS_Store
drwx------   3 gregory  staff         102 Sep 29  2010 .TVUPlayer for MacOS X/
drwx------  28 gregory  staff         952 Sep  4 15:10 .Trash/
drwxr-xr-x   2 gregory  staff          68 Aug 10  2010 .Xcode/
drwxr-xr-x   4 gregory  staff         136 Dec  5  2010 .android/
-rw-------   1 gregory  staff        9345 Aug 24 15:40 .bash_history
drwx------   3 gregory  staff         102 Jul  4  2010 .cups/
drwxr-xr-x   6 gregory  staff         204 Jul 24 18:35 .dvdcss/
drwxr-xr-x   6 checking  mybbreading         204 Jul 24 18:35 .pornpornporn/
drwxr-xr-x   5 gregory  staff         170 Feb 23  2011 .mixxx-1.8/
drwxrwxrwx   3 gregory  staff         102 Aug  3  2010 .nchsoftware/
drwxr-xr-x   3 gregory  staff         102 Jul  7  2010 .parallels/
-rw-------   1 root     staff        2425 May  9 12:12 .sh_history
drwxr-xr-x   6 gregory  staff         204 Jun  2  2010 .subversion/
-rw-r--r--   1 gregory  staff         217 Jul 17 15:41 .swfinfo
-rw-r--r--   1 gregory  staff         379 Aug 13  2010 .temp.html
drwxr-xr-x   3 gregory  staff         102 Jul 17 15:37 .xbmc/
drwxr-xr-x  32 gregory  staff        1088 Nov 23  2010 AdminPrints/
drwxr-xr-x   4 gregory  staff         136 Jan 18  2011 DL to sort/
drwx------+ 57 gregory  staff        1938 Sep  4 10:53 Desktop/
drwxr-xr-x  68 gregory  staff        2312 Apr 30  2008 Developer/
...etc...

MacBook-Pro:~ gregory$

:) See above to see who in mybb reads all my folder contents.
 
What information are you hoping to see?
I've got various hdds full of aperture libraries that I want to catalogue - some of them have sub folders which I also want to index however if I use ls -R it delves into the individual Aperture libraries - I'd rather avoid having every file (thousands of photos) inside those included.

Since I'm making a wish list having the last modified date and the library size would be nice too! :D
 
find is your friend! Unfortunately the BSD version included in OSX misses some useful options (-printf in particular). Either ways:

Code:
p$ cd Pictures/
$ find . -maxdepth 2  | grep Aperture
./Aperture Library.aplibrary
./Aperture Library.aplibrary/Aperture.aplib
./Aperture Library.aplibrary/ApertureData.xml
./Aperture Library.aplibrary/Attachments
./Aperture Library.aplibrary/Database
./Aperture Library.aplibrary/iLifeShared
./Aperture Library.aplibrary/iMovie-Thumbnails
./Aperture Library.aplibrary/Info.plist
./Aperture Library.aplibrary/iPod Photo Cache
./Aperture Library.aplibrary/Masks
./Aperture Library.aplibrary/Masters
./Aperture Library.aplibrary/Previews
./Aperture Library.aplibrary/Thumbnails

My guess is if you have all your drives plugged in, cd to /Library, and run with maxdepth of 3, assuming your Aperture Libraries are in the root of each drive.
 
Thanks koffiejunkie but I downloaded bbedit and that seems to be doing a good enough job. :)
 
Thanks koffiejunkie but I downloaded bbedit and that seems to be doing a good enough job. :)

You mean to tell me you have never owned BBEdit????

Wow! It is the first thing I install on a new mac and I have owned it since ver 3. Upgraded every second release. Best. Software. Ever.
 
You mean to tell me you have never owned BBEdit????

Wow! It is the first thing I install on a new mac and I have owned it since ver 3. Upgraded every second release. Best. Software. Ever.
I had an older version that isnt lion compatible so I downloaded the trial. TBH smultron does almost everything I need, and it's free - at least pre-version 4 is.
 
When I google for 'bbedit' I find an html editor. How does this solve our problem? :confused:
If you drag a drive/folder into a new document it does a directory listing automagically.
 
pornpornporn

Pooky found mybb stash! :)

I've never heard of it.

In early days - OS 6 - the text editor that shipped could not open big files so BareBones was formed and BBEdit was their first major release. We used it back then for HTML coding. I used to do the monthly Topcar website with it from 96 to 99 using BBEdit. Fantastic software. In those days, if you bought it, you could get lucky and win a T-Shirt that said "BBEdit - it doesn't suck". My boss at the time won one. I never did.
 
In early days - OS 6 - the text editor that shipped could not open big files so BareBones was formed and BBEdit was their first major release. We used it back then for HTML coding. I used to do the monthly Topcar website with it from 96 to 99 using BBEdit. Fantastic software. In those days, if you bought it, you could get lucky and win a T-Shirt that said "BBEdit - it doesn't suck". My boss at the time won one. I never did.

Sounds nice. How does it compare to Textmate (which I already own a license for)?
 
Top
Sign up to the MyBroadband newsletter
X