Re: [newbie] Printing a file list

2003-02-04 Thread Todd Slater
On Mon, 3 Feb 2003 20:01:04 -0800
Larry Williams [EMAIL PROTECTED] wrote:

 On Monday 03 February 2003 18:08, Todd Slater wrote:
  I don't know if you mean print to a printer or not, but you can always
  dols directory  .toc, then print .toc. I made .toc a dot file
  because if you don't and you write it to the same directory you're
  listing, it will count itself as a file and get listed. Never
  understood that one.
 
 It gets counted because the first thing done in the command is to open
 the output.  In this case, a file is opened to receive stdout.  Then the
 ls command is executed.  Since the file exists, it will be included. 
 One way around it is to make it hidden by using a leading dot like you
 mentioned.
x

That helps, thanks for the explanation, Larry. I'm just going to keep on
thinking it's magic that it knows to open that file before it does the
other stuff that comes before it. I always assumed it was linear, left to
right, in such a simple sequence.

Todd


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Printing a file list

2003-02-04 Thread Larry Williams
On Tuesday 04 February 2003 18:16, Todd Slater wrote:
 That helps, thanks for the explanation, Larry. I'm just going to keep on
 thinking it's magic that it knows to open that file before it does the
 other stuff that comes before it. I always assumed it was linear, left to
 right, in such a simple sequence.

Sounds good, Todd.  I took an Intro to Unix class at a community college a 
couple years ago and discovered that bit of trivia there.  I think it was 
under the heading of Magic, sub-heading of Slight-of-Code.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Printing a file list

2003-02-03 Thread Dennis Myers
Can someone tell me if there is a way to print the list of names in a 
directory that holds about 70 .jpg pictures? I just want a list of the photo 
names. TIA for any help.
-- 
Dennis M.  linux user # 180842


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Printing a file list

2003-02-03 Thread Azrael
umm.. something like:

ls *  file-list.txt

then open that file in an editor and print?

On Tue, 2003-02-04 at 01:56, Dennis Myers wrote:
 Can someone tell me if there is a way to print the list of names in a 
 directory that holds about 70 .jpg pictures? I just want a list of the photo 
 names. TIA for any help.
-- 
Azrael

   (\''/).___..--'''-._  
   `0_ O  )   `-.  ( ).`-.__.`) 
   (_Y_.)'  ._   )  `._ `. ``-..-'  
 _..`--'_..-_/  /--'_.' .'  
((i).-''  ((i).'  (((.-' 
   
Of all God's creatures there is only one that cannot be made the slave
of the lash. That one is the cat. If man could be crossed with a cat it
would improve man, but it would deteriorate the cat. 

ICQ#52944566
Registered Linux User: 269002




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com