[Wlug] list filenames within directory > output to text file? SOLVED
iris.gates at gmail.com
Tue May 8 19:59:25 EDT 2012
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
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
On 8 May 2012 18:27, Theo Van Dinter <felicity at 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 at 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!
>> On 8 May 2012 17:52, E Johnson <iris.gates at 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 at mail.wlug.org
> Wlug mailing list
> Wlug at mail.wlug.org
More information about the Wlug