|
|
alphabetical listing
I'm certain there is a way in the Terminal to copy and paste an alphabetical listing, I think to write the list to a .txt file? Anyone know?
alphabetical listing
Writing to a file:
ls -ls > filelist.txt for long file info
ls -1 > filelist.txt (that's -one) for just file names.
Writing to clipboard:
ls -ls | pbcopy for long file info
ls -1 | pbcopy (that's -one) for just file names.
Obviously, you can use any arguments to ls to get your preferred formatting.
alphabetical listing
http://www.apple.com/downloads/macosx/unix_apps_utilities/shellservice.html
alphabetical listing
the undocumented pbcopy and pbpaste commands allow you to copy and paste to the clipboard. For instance to get a home directory listing:
ls ~ | pbcopy This will place the listing of the directory into the clipboard and you can then paste into whatever application you want.
alphabetical listing
I added the following to my .login (actually a file called .aliai which is sourced from my .login) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|