| OS X - Apps and Games Discussion of applications and games available for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Sep 06, 2008
Posts: 734
![]() Mac Specs: 13" MBP - 2.7 Ghz, Intel Core i7, 8GB RAM.
|
|
| QUOTE Thanks | |
![]() Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,125
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: MacBookAir5,2:10.8.3-MacMini3,1:10.8.3-iPhone3,1:6.1.3
|
open terminal, cd to the folder, type ls, then copy and paste into your text editor.
,_____o00o _ //___l__,\____\,__ l_--- \___l---OlllllllO (o)_)-o- (o)_)--o-)_) |
| QUOTE Thanks | |
![]() Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,531
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff
|
ls > whatever_you_want_to_name_it.txt ls -l if you want more information... ls -lh if you want filesizes to be human readable ooooo if you really just want the FILES, not subdirectories.. find . -depth 1 -type file > filename.txt mike This machine kills fascists Got # ? phear the command line! |
||||
| QUOTE Thanks | |||||
![]() Member Since: Sep 06, 2008
Posts: 734
![]() Mac Specs: 13" MBP - 2.7 Ghz, Intel Core i7, 8GB RAM.
|
|
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,313
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
![]() Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,531
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff
|
In addition to vansmith's excellent point (I completely forgot to mention how to get there) the find statement is the start of the command. So it will look like this..
mikeMbp:~ mike$ find . -depth 1 -type file > examlpleFile.txt mikeMbp:~ mike$ Now the contents will look something like this.. ./.ano ./.bash_history ./.CFUserTextEncoding ./.DS_Store ./.lesshst ./.profile ./.syncdocs ./.viminfo ./.Xauthority ./able.preferences ./ANALYS32.XLL ./dscli ./examlpleFile.txt if the ./ is a problem we can ditch that by doing something like this... find . -depth 1 -type file | sed 's:./: :' > examlpleFile.txt mike This machine kills fascists Got # ? phear the command line! |
| QUOTE Thanks | |
![]() Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 12" Apple PowerBook G4 (1.5GHz)
|
Geez. Why does everybody jump for the Terminal for such a simple problem?
Open a folder. Choose Edit > Select All Choose Edit > Copy Open a text editor, such as BBEdit or TextWrangler. (Important note: if you use TextEdit, make sure you are using Plain Text mode. By default, you can do this by choosing Format > Make Plain Text. You should not see the toolbar with Style and Line Spacing.) Choose Edit > Paste |
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,313
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
The only thing I have noticed with Dysfunction's idea, which I would have also suggested, is that the file you redirect output to (I think that's the right phrase) will also include the name of the file you redirect to. To clarify, let me show you.
If I execute ls > test.txt in my home directory, the content of test.txt is as follows: Desktop Documents Downloads Library Movies Music Pictures Public Sites test.txt So, as you can see, the file you are trying to save the output of ls to is also included in that list. This also occurs for the aforementioned find command. One simple way around this would be to redirect to a file outside of the directory you are trying to get the contents of. So, for instance, you could execute the following: Code:
ls > ~/Desktop/test.txt Code:
find . -depth 1 -type file > ~/Desktop/exampleFile.txt Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Moving mp3's to your Audiobooks folder | bobtomay | iPod Hardware and Accessories | 10 | 10-10-2009 12:02 PM |
| Internet help ( quick) | watzup | Switcher Hangout | 8 | 09-22-2006 09:07 AM |
| File Icons & Associations confusion | markwm | OS X - Operating System | 1 | 03-04-2006 10:38 PM |
| Changing folder / file names... why so hard? | iFX | Switcher Hangout | 9 | 05-17-2005 10:15 PM |
| Can you guys open this site? | Desolate One | OS X - Apps and Games | 13 | 04-29-2005 01:23 PM |
All times are GMT -4. The time now is 08:16 AM.
Powered by vBulletin