Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Any way around "Argument list too long"?
Date: Mon, 18 Jul 2011 08:50:29
Message-Id: 20110718094824.079dce7a@zaphod.digimed.co.uk
In Reply to: Re: [gentoo-user] Any way around "Argument list too long"? by Grant
1 On Sun, 17 Jul 2011 18:40:44 -0700, Grant wrote:
2
3 > Alright, find is tricky. Is this the right spot for -delete?
4 >
5 > /usr/bin/find /home/user -type f -name "*-`/bin/date -d 'yesterday'
6 > +\%Y\%m\%d`*.jpg" - delete
7
8 Yes, but if you don't want irreversible mistakes, move the files instead.
9
10 find /home/user -type f -name blah -exec mv -t ~/.Trashcan "{}" +
11
12
13 --
14 Neil Bothwick
15
16 The facts, although interesting, are usually irrelevant.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Any way around "Argument list too long"? Grant <emailgrant@×××××.com>
Re: [gentoo-user] Any way around "Argument list too long"? Florian Philipp <lists@×××××××××××.net>