[Tutor] Re: cd reader

lumbricus@gmx.net lumbricus@gmx.net
Sun Nov 24 22:30:01 2002


Hi!

[ snip ]

> Depending on how you want the output formatted, either
>     $ find /cdrom -name \* -print > the_file_list.txt
                    
'-name \*' has no effect except that it doesn't find files
beginning with a '.', which may not be desired by the
OP. To get only ordinary files the OP may use '-type f'.

> or
>     $ ls -R /cdrom > the_file_list.txt
> will get the list and store it in a file.
> 
> At least on a real unix system (I'm not sure about cygwin) this
> command will print the list.
>     $ lp the_file_list.txt

Or lpr for spooling.

> If all you want is a hard-copy of the list, you can pipe the list
> directly to lp and avoid an intermediary file on disk.
> 
> HTH,
> -D

HTH, J"o!

-- 
Wir beschliessen etwas, stellen das dann in
den Raum und warten dann einige Zeit ab, was
passiert. Wenn es dann kein grosses Geschrei
gibt und keine Aufstaende, weil die meisten
gar nicht begreifen, was da beschlossen
wurde, dann machen wir weiter - Schritt fuer
Schritt, bis es kein Zurueck mehr gibt. 
   -- J-C Juncker

+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!