Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Backup script, to date-stamp file & delete backup files Older than 7 days
  • From: Robert Paulsen <robert@xxxxxxxxxxxxxxxxx>
  • Date: Sat, 22 May 2004 16:37:51 -0500
  • Message-id: <200405221637.51625.robert@xxxxxxxxxxxxxxxxx>
On Saturday 22 May 2004 14:04, pinto wrote:
> On Saturday 22 May 2004 18:09, Robert Paulsen wrote:
> > Something like this:
> >
> >         find ./test -mtime +7 -exec rm -f {}  \ ;
>
> ___________________
>
> Dear Mr Paulsen ~ Many thanks,
>
> in case relevant, my SuSE is version 8.0
>
> . . . i have tried :
>
>   find ./test -mtime +7 -exec rm -f {}  \ ;
>
> But, am greeted by complaint "find: missing argument to '-exec' "
>
> . . . what, please, do you think is needed?
>

Your line above has a space between the backslash and the semicolon. The
backslash protects whatever character immediately follows it, which is a
space in your line above. You need to protect the semicolon from the shell so
you need "\;" with no spaces between.

--
Robert C. Paulsen, Jr.
robert@xxxxxxxxxxxxxxxxx

< Previous Next >
Follow Ups