In Unix, how do I get a recursive directory listing?
If you want a recursive directory listing in Unix, one of the following may be useful:
||Not all versions of
||Should work everywhere|
||Shows you both the name and size|
If you're looking for a wildcard pattern that will match
.c files in and below a certain directory, you won't
find one, but you can use:
some-command `find . -name '*.c' -print`
some-command with the command you want to run.
Note: This information comes from the Unix
FAQ, which is posted regularly to the Usenet
comp.unix.shell. You can obtain it by FTP from
rtfm.mit.edu in the
and on the web at:
Last modified on November 11, 2010.