On Sun, Jul 17, 2011 at 7:23 PM, Grant <emailgr...@gmail.com> wrote: > I'm getting the same thing from find: > > $ /usr/bin/find /home/user/*-`/bin/date -d 'yesterday' +\%Y\%m\%d`*.jpg > /usr/bin/find: Argument list too long
You're using find wrong; the first argument needs to be the root path it starts searching from. To find files matching a particular name or pattern, try using -name or -iname. DATE=$(/bin/date -d 'yesterday' +\%Y\%m\%d) find /home/user -name '*-$DATE' -- :wq