Question about ls
Bernhard
berndl81 at gmx.at
Thu Mar 3 07:43:53 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone.
I just tried to list all the audio-cds that I have already converted
into ogg format. I looked at the ls, which should do the job I guess,
however I am running into minor problems
ls -R /path/to/music > mymusic.txt
lists recursively all the subdirectories in my music path as expected.
What I want is, that only the existing subdirectories are listed, but
not the actual content of the subdirectories.
Looking at the man page didn't help me much. I found the -d option,
which just doesn't seem to work with the -R option. So
ls -d -R /path/to/music -> mymusic.txt
just writes the subdirectories in the path, but not recursively. Any
hints? Thanks a lot in advance...
Greets,
Bernhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCJsA5q4oeGfO4V7cRAkw+AKDgt+lkKlqZWQ5b3c4sECQAFOeEJwCgjpqP
d2PtHkMauSDS07ScKKBOghM=
=sjxw
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list