From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 23A581392EF for ; Mon, 14 Jul 2014 00:08:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03ADFE084F; Mon, 14 Jul 2014 00:08:31 +0000 (UTC) Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8DA8E083C for ; Mon, 14 Jul 2014 00:08:29 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id wo20so3418155obc.21 for ; Sun, 13 Jul 2014 17:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=R0pi6ZPOsBA2YmlZend6NuThLbimf4d3gjK4RJjjLJ0=; b=SZe+aeGU9kYqH66qEdTGBkmqJbMMr9fxIXobzA1NdIJ7AGPBZ52ovFaTv6hzJ3P4Ii BG4hywuwuhJAWdA3vZXXu+XfeUp3YW42CHWiDcbz/sHHhyg9wgibsBuRMnz8+Ud+Y8jT mRGYfgEryFuLyg9MbKzr4DZR1Qu+oeSYdi6bj2C5JjWizIJFuxgm02pI/hM8NQ8LJFSQ L/MHE5d0MPaXoo9EvU0JRnCYFuh+ntX4vIqfaFfMXhfITTzPLcKB6duqOj8s3eOpp3Pn oXcvaWesu2cvKwOxJpbifbF6in1vy8Y+bT+3yIh63bPj32X5MWjnxkejK79g16EXmxkh A0wQ== X-Received: by 10.182.255.201 with SMTP id as9mr14519029obd.44.1405296509091; Sun, 13 Jul 2014 17:08:29 -0700 (PDT) Received: from erikmack@gmail.com (cetn-04-0040.dsl.iowatelecom.net. [71.7.64.40]) by mx.google.com with ESMTPSA id g3sm19839499obd.18.2014.07.13.17.08.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Jul 2014 17:08:27 -0700 (PDT) Received: (nullmailer pid 23137 invoked by uid 1000); Mon, 14 Jul 2014 00:12:12 -0000 From: Erik Mackdanz To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] locating large disk files In-Reply-To: <20140713200341.GA22079@syscon7> References: <20140713200341.GA22079@syscon7> User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Sun, 13 Jul 2014 19:12:12 -0500 Message-ID: <87a98c94tf.fsf@msi.mackdanz.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain X-Archives-Salt: 09b666fa-803f-4307-835a-f9b86f294826 X-Archives-Hash: 9c06b9e4964a438b99acd39c062f6f5c 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 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