Print full path of files and sizes with find in Linux
Posted
by
cat pants
on Super User
See other posts from Super User
or by cat pants
Published on 2013-06-25T01:49:06Z
Indexed on
2013/06/25
4:23 UTC
Read the original article
Hit count: 498
Here are the specs: Find all files in / modified after the modification time of /tmp/test, exclude /proc and /sys from the search, and print the full path of the file along with human readable size. Here is what I have so far:
find / \( -path /proc -o -path /sys \) -prune -o -newer /tmp/test -exec ls -lh {} \; | less
The issue is that the full path doesn't get printed. Unfortunately, ls doesn't support printing the full path! And all solutions I have found that show how to print the full path suggest using find. :|
Any ideas? Thanks!
© Super User or respective owner