Re: Fwd: Help: tar & find

2004-01-26 Thread Matthew Seaman
On Thu, Oct 23, 2003 at 08:25:20AM -0600, Steve D wrote: > On Wed, Oct 22, 2003 at 10:43:50PM -0600, Scott Gerhardt wrote: > > I am having trouble combining the tar and find command. I want to > > tar and > > delete all .bak,.Bak,.BAK files. > > > > I am using the following command but keep receiv

Re: Fwd: Help: tar & find

2003-10-24 Thread CBuH.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 23 October 2003 15:34, Matthew Seaman wrote: > On Wed, Oct 22, 2003 at 10:43:50PM -0600, Scott Gerhardt wrote: [skipped] > > The problem is that you have file/directory names like 'ROOF LAYOUTS' > which contain spaces and possibly

Re: Fwd: Help: tar & find

2003-10-23 Thread Steve D
Steve D <[EMAIL PROTECTED]> wrote: > Would the following approach also work? (Have sed surround each > item returned by the find command with single quotes?) > --- > #! /bin/bash > set +x > TAR_DIR=/home/tarbackups; > FILES_DIR=/home/common; > tar --remove-files -cvzpf $TAR_DIR/bak_files_`date +%F

Re: Fwd: Help: tar & find

2003-10-23 Thread Steve D
On Wed, Oct 22, 2003 at 10:43:50PM -0600, Scott Gerhardt wrote: > I am having trouble combining the tar and find command. I want to > tar and > delete all .bak,.Bak,.BAK files. > > I am using the following command but keep receiving errors. [...] > The script is as follows > ==

Re: Fwd: Help: tar & find

2003-10-23 Thread Matthew Seaman
On Thu, Oct 23, 2003 at 12:34:40PM +0100, Matthew Seaman wrote: > On Wed, Oct 22, 2003 at 10:43:50PM -0600, Scott Gerhardt wrote: > > > > I am having trouble combining the tar and find command. I want to tar > > and > > delete all .bak,.Bak,.BAK files. > > > > I am using the following command b

Re: Fwd: Help: tar & find

2003-10-23 Thread Matthew Seaman
On Wed, Oct 22, 2003 at 10:43:50PM -0600, Scott Gerhardt wrote: > > I am having trouble combining the tar and find command. I want to tar > and > delete all .bak,.Bak,.BAK files. > > I am using the following command but keep receiving errors. The tar > command > appears to be receiving a trun

Fwd: Help: tar & find

2003-10-22 Thread Scott Gerhardt
I am having trouble combining the tar and find command. I want to tar and delete all .bak,.Bak,.BAK files. I am using the following command but keep receiving errors. The tar command appears to be receiving a truncated file/path (some of the time, but not always), and trying to procecss the fi