Even better, you don't need the "-1". ls determines if it's output is going to a tty and auto-enables the "-1" mode when it's not, such as when you're writing to a file. :) I have to ask though, why would you put the list of files in a spreadsheet just to print it? Seems like something you could do via the machine itself (if printing is configured), or worst case you just print the text file. On Tue, May 8, 2012 at 6:22 PM, E Johnson <iris.gates@gmail.com> wrote:
Wow! Perfect! Thanks to everyone!
I used:
(in the directory I need output from)
ls -1 > /home/EJ/Directory/CurrentList.txt
That text should now drop into an XL doc or something, from where we can print it.
Beautiful. Thanks guys!
Liz
On 8 May 2012 17:52, E Johnson <iris.gates@gmail.com> wrote:
Is there an app or command line tool which can copy all filenames within a certain directory, and output these filenames to a plain-text file?
I need to list about 400 filenames, then drop these into an xl doc, in order to sort.
Don't need to know permissions or anything else.
I think sort might do it < http://ss64.com/bash/sort.html >, but probably I need help creating a command that will list only the file names, which I can then copy/paste to an xl doc.
I am running Debian. I have one Squeeze and one Lenny here.
Thanks extremely, Liz J
Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug