From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QjAqR-0003ms-Vq for garchives@archives.gentoo.org; Tue, 19 Jul 2011 14:00:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BFCA621C13E; Tue, 19 Jul 2011 14:00:07 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by pigeon.gentoo.org (Postfix) with ESMTP id CB71621C0BD for ; Tue, 19 Jul 2011 13:58:56 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 3916D20F19 for ; Tue, 19 Jul 2011 09:58:56 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 19 Jul 2011 09:58:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:references:in-reply-to:content-type; s=smtpout; bh=0q6yDclTf6iIR2jA5wKhDqwu4rs=; b=PFMkhzKnRzNHNrYXf1kRJ57UEbu6JsbEBPmN9V8DxvzD/B6pVErAYrC+oSp9+XVhmZigQjXZMGGhxsMwz4pfq15MyvM0wlkhszYtpzNfVgtftiLQUQaKVIahBbvJEGNxNnC34WnTHuBzzYqm3PsoLjprqloVx/zBMErVWNSNOvo= X-Sasl-enc: 6ufCtwAvYpUSPOcGN16/ImHNZMnKitJMykzse08UqL8j 1311083934 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id EF7E6406C06 for ; Tue, 19 Jul 2011 09:58:53 -0400 (EDT) Message-ID: <4E258D94.1090707@binarywings.net> Date: Tue, 19 Jul 2011 15:58:44 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110507 Lightning/1.0b3pre Thunderbird/3.1.10 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Any way around "Argument list too long"? References: <20110717205303.6263aa02@karnak.local> <16810050.Acf57OJLs1@nazgul> <1310951110.304502.9.camel@localhost.localdomain> <20110718094824.079dce7a@zaphod.digimed.co.uk> In-Reply-To: <20110718094824.079dce7a@zaphod.digimed.co.uk> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2C7CB5E3FD1C53F54D5C72BA" X-Archives-Salt: X-Archives-Hash: 3d448ab9841519088f439d4b2614333c This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2C7CB5E3FD1C53F54D5C72BA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 18.07.2011 10:48, schrieb Neil Bothwick: > On Sun, 17 Jul 2011 18:40:44 -0700, Grant wrote: >=20 >> Alright, find is tricky. Is this the right spot for -delete? >> >> /usr/bin/find /home/user -type f -name "*-`/bin/date -d 'yesterday' >> +\%Y\%m\%d`*.jpg" - delete >=20 > Yes, but if you don't want irreversible mistakes, move the files instea= d. >=20 > find /home/user -type f -name blah -exec mv -t ~/.Trashcan "{}" + >=20 >=20 In all these commands it would always be a good idea to deactivate parameter parsing just in front of the place where the file names are inserted. find ... -print0 | xargs -0 mv -t ~/.Trashcan -- or find ... -exec mv -t ~/.Trashcan -- "{}" + The double dash will prevent mv from interpreting weird file names like "-h" as parameters. Just about every standard GNU tool supports this. Regards, Florian Philipp --------------enig2C7CB5E3FD1C53F54D5C72BA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4ljZkACgkQqs4uOUlOuU+RKACfY/UPlDyoAcPLm0tUw8y7nZr6 dowAn2xDDH+DHWqPkShstv2cgdGqOU0q =AWf7 -----END PGP SIGNATURE----- --------------enig2C7CB5E3FD1C53F54D5C72BA--