[Tutor] Re: cd reader

Derrick 'dman' Hudson dman@dman.ddts.net
Sun Nov 24 23:03:01 2002


--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 25, 2002 at 04:29:02AM +0100, lumbricus@gmx.net wrote:
| Hi!
|=20
| [ snip ]
|=20
| > Depending on how you want the output formatted, either
| >     $ find /cdrom -name \* -print > the_file_list.txt
|                    =20
| '-name \*' has no effect=20

I don't think 'find' is happy without some condition specified.

| except that it doesn't find files beginning with a '.',

Oops.  Right.

| which may not be desired by the OP.
| To get only ordinary files the OP may use '-type f'.

Which will (as you implied) omit directories.  The next question is
whether or not the listing should have directories listed explicitly
or only implicitly as part of other files' paths.

-D

--=20
If we confess our sins, He is faithful and just and will forgive us our
sins and purify us from all unrighteousness.
        I John 1:9
=20
http://dman.ddts.net/~dman/

--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj3hpC0ACgkQO8l8XBKTpRTMOACffE7uWwVqH5nPlUiYAWtvxhAv
B9MAoIkCTjEpqy26tGbSpARDj5S5W8e9
=Ojiy
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--