Very handy way of creating a printable list of a folders contents OS X - Gearslutz.com

Gearslutz.com

All Advertisers
Go Back   Gearslutz.com > The Forums > Music computers


Very handy way of creating a printable list of a folders contents OS X

New Reply New Reply Thread Tools Search this Thread
Old 18th June 2003   #1
Mindreader
 
BevvyB's Avatar
 
Joined: Jun 2002
Location: London
Posts: 2,604

Thread Starter
Send a message via AIM to BevvyB
Very handy way of creating a printable list of a folders contents OS X

When I'm doing big projects, I have to create lists of files that I'm uploading/burning, so that people can check if they have all the correct files on a disk or ftp site.

It can be laborious if you go through and 'copy' each file name into a text file, especially if you are creating major documents, as I'm sure some of you are.

With OS X Unix it is very easy. So easy that I should put it here.

----
For beginners, the terminal has the commands ls (list current directory), cd path_name (change current directory to path_name) and the abreviations / (for top level), ~ (for logged in users home directory) and . for current directory
----

Using REDIRECTION (putting the output of a command TO somewhere else) you can create files. In UNIX it's as simple as putting a > after the command.


Here's how to make a text document appear on your desktop which has a list of the contents of the current directory (folder)

This way of doing things will OVERWRITE a file with the same name

1. Navigate to the directory (folder) you want to list (using the terminal, not in the GUI duh)
2. Type ls > ~/desktop/folderlist.txt

Ta Dah! A text file appears on your desktop. Have a look inside it.

Now for a cool and simple thing. Here's how you do it so that the listing is APPENDED to the end of the file

1. Navigate to the directory (folder) you want to list
2. Type ls >> ~/desktop/folderlist.txt

Basically, using TWO > tells it to add to the end of the file

-----

Groan, but that's too boring, I don't want to have to navigate using the terminal to all those eighth depth on another drive places!!

Well, you don't have to. To change directory easily type

cd

and then DRAG the folder from your desktop ONTO the terminal app

Hey presto, it puts the path in for you

** Warning: Unix doesn't understand spaces in folder names or files. If there is one in there you need to enclose the whole file path in quotes ""


-------
Anyway,

I wish I'd had this in OS9!
BevvyB is offline   Reply With Quote
New Reply New Reply Submit Thread to Facebook Facebook  Submit Thread to Twitter Twitter  Submit Thread to LinkedIn LinkedIn 



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread starter Forum Replies Last Post
The Handy List of Stock Answers for Gearslutz Mark Kaufman The Moan Zone 81 29th July 2010 07:03 PM
Folder contents opening slowly. Kroy Music computers 0 2nd December 2007 01:11 PM
Screenset doesn't remember Folder content view? velvet Music computers 0 22nd September 2007 02:09 PM
A very long list of free samples brian_delizza Rap + Hip Hop engineering & production 12 10th July 2006 06:37 AM
Very handy OSX guide BevvyB Music computers 2 25th July 2003 09:24 PM


All times are GMT +1. The time now is 05:51 AM.

Home - Search Forum - Contact Us - Terms Of Use - Advertise on Gearslutz - All Advertisers - Archive - Top
 
 
Powered by vBulletin®
Gearslutz.com LTD - UK Company Number 7597610.
Registered Office - 35 Ballards Lane, London, N3 1XW.
Hosted by Nimbus Hosting.

SEO by vBSEO ©2010, Crawlability, Inc.