||11-12-2009 04:03 PM
List all files in a directory recursively, without the directories?
For the purposes of shell scripting, is there a command that will list all the files in a directory recursively without listing the directories?
For example: in the directory below, I can ls the contents of the directory, but how would I get all the file names, of even the files in the included directories, but not those directories...?
[root@gw4 ~]# cd /var/log
[root@gw4 log]# ls
acpid boot.log cups mail pm secure yum.log
anaconda.log btmp dmesg maillog ppp spooler
anaconda.syslog conman faillog mcelog prelink tallylog
apf_log conman.old httpd messages pureftpd.log wtmp
audit cron lastlog mysqld.log rpmpkgs xferlog