Instead of '-exec ls' I recommend the -ls or -printf switches. If you really require the human-formatted size, you can also just quote {} properly.
Joseph <syscon...@gmail.com> writes: > I'm trying to clean up my home directory by locating large disk files. I used: > find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' > > but I'm getting strange output: > 13:57: 194M > 2011: 57M > 17:05: 31M > 2011: 27M > 06:02: 41M > 11:31: 21M > 11:39: 28M > 22:02: 62M > 2012: 26M > 12:53: 104M > 2012: 26M > 16:33: 127M > 21:28: 104M > 20:21: 61M > 06:20: 96M > 2011: 21M > 08:07: 26M > 2011: 37M > 2011: 28M > 19:34: 93M > 2013: 42M > 20:54: 33M > 2013: 40M > 06:04: 26M > 19:42: 190M > 10:00: 47M > 13:43: 1.3G > 10:38: 41M > 14:31: 41M > 16:24: 711M > 2012: 27M > 08:21: 251M > 2011: 44M > 13:53: 651M > 07:40: 46M > 13:23: 49M > 13:41: 355M > 10:41: 20M > 2013: 32M > ... > > -- > Joseph > -- Erik Mackdanz