A text file containing 500 names would print on just the left-hand side of who-knows how many pages. We need this in a word processor doc, which we can make into columns, then print on only 2 or 3 sheets. It's just for reference, so we know if we already have this file in our directory. Or, I need a command which will print the filenames in several columns (six, I think, with reasonlable space in between columns) on a series of landscape-oriented pages. I probably need to define the font. I think we used 8pt arial last time, which came out on one page. Now we have 3x as many files in the directory but still need a printout for reference. Liz On 8 May 2012 18:27, Theo Van Dinter <felicity@kluge.net> wrote:
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
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug