Hi,
I want to find the files by find command and then know their size and date. Then I did
find /u -name 'name' -print |xargs ls -l
but does not function. What is wrong ?
What do you sugest ?
Many thanks.
find ~/ -exec ls -l {} \;
hope could help you
andwhat
"does not function" does not tell us much. What happens when you tried it?
find /u/username -print|xargs ls -l
will return all files in the home directory of the username, their size and date
the same as:
find ~/username -print|xargs ls -l
I don't know if this is what you need.
What would be wrong with just using the -ls option in find?
Maybe the OPs find does not support the '-ls' option. HP-UX find doesn't.
thanks to all.
use find -ls
| xargs -ls
won't work for filenames with spaces.