Hi,
I would like to list the files of a directory recursively.
I want the output format to be like this example (listing current directory) :
foo.hh
foo.cpp
sub-dir1/stuff.hh
sub-dir1/other-stuff.hh
sub-dir1/sub-dir11/ooo.hh
sub-dir2/bar.hh
sub-dir2/other-bar.hh
One file per line, and prefixed with the relative directory.
I tried with "ls -1 -R" but I can't get it to work as I want (I can't prefix with the directory info).
Any ideas with other tools maybe?
Thanks for help.
--
Globos
I would like to list the files of a directory recursively.
I want the output format to be like this example (listing current directory) :
foo.hh
foo.cpp
sub-dir1/stuff.hh
sub-dir1/other-stuff.hh
sub-dir1/sub-dir11/ooo.hh
sub-dir2/bar.hh
sub-dir2/other-bar.hh
One file per line, and prefixed with the relative directory.
I tried with "ls -1 -R" but I can't get it to work as I want (I can't prefix with the directory info).
Any ideas with other tools maybe?
Thanks for help.
--
Globos