List only the files

I want to listed out only the files from a directory which consist of both sub directories as well files in each sub directories.
i want to listed out only the files from all the subdirectories.

can anyone help me.....

It's not clear what you're asking, but maybe this will give you some ideas:

# Find only directories under (and including) $DIR
find $DIR -type d

# Find all files under $DIR (and files under all subdirs)
find $DIR -type f

# Find only directories that are in $DIR (but NOT in subdirs)
find $DIR/* -type d -prune
# or (if your "find" supports it...YMMV)
find $DIR -type d -maxdepth 1

Probably this could help.

ls -ltR | awk '{print $1" "$9}'

Thanks for ur reply,

one more requirement , i want to list only the files with size from all subdirectories.

Thanks in advance...

How about:

find . -type f -exec du -k {} \;

This(find . -type f -exec du -k {} \:wink: is what i was expect.

Thanks a lot....