Re: ls -R without printing directory names?



"J.O. Aho" <user@xxxxxxxxxxx> writes:

Noozer wrote:
How can I generate a recursive list of files in a directory tree,
without the directory information being displayed? I just want
a list of files, creation dates and owner.

This is somewhat in the direction you wanted to come:
ls -R -1 -F | sed 's/.*\/.*//g'

It's useless. It gives you only the file names without directory
hierarchy and leaves a lot of blank spaces where directories were.

ls -R1F | sed -e '/:$/ n' -e '/\// d'

Would probably be better.

--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86*tlen.pl>--<jid:mina86*jabber.org>--ooO--(_)--Ooo--
.



Relevant Pages

  • Re: ls -R without printing directory names?
    ... the directory information being displayed? ... creation dates and owner. ... This is Centos linux with kernel 2.6.9-22 ...
    (alt.os.linux)
  • Re: ls -R without printing directory names?
    ... the directory information being displayed? ... creation dates and owner. ... Shell Scripting Recipes: | My code in this post, if any, ...
    (alt.os.linux)
  • Re: ls -R without printing directory names?
    ... the directory information being displayed? ... I just want a list of files, creation dates and owner. ... | pipes the result from ls to sed ...
    (alt.os.linux)
  • Re: Trapping a page in a frame?
    ... or that they are somehow a creation of mine. ... Please do not assume the postion of Usenet cop. ... You don't have to infer anything. ... if you are not the owner of both or have permission of the owner, ...
    (comp.lang.javascript)
  • Re: Trapping a page in a frame?
    ... or that they are somehow a creation of mine. ... screw up their site? ... if you are not the owner of both or have permission of the owner, ...
    (comp.lang.javascript)