[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Help using find command



Thanks Ron. This works perfectly.


Ron McKeever wrote:
How about:

find . -regex '.*\(odt\|ods\|sxc\)$' | tar -c -T - | gzip > /root/openoffice.tar.gz

then

confirm with

# tar –ztvf /root/openoffice.tar.gz

Ron

-----Original Message-----
From: redhat-sysadmin-list-bounces redhat com [mailto:redhat-sysadmin-list-bounces redhat com] On Behalf Of Rob Myroon
Sent: Thursday, November 30, 2006 1:47 PM
To: redhat-sysadmin-list redhat com
Subject: Help using find command

Hi list,

I am trying to tar up all the openoffice files on my server using the

find command. The command I have come up with only tars the last file

found by the find command.

# find . -regex '.*\(odt\|ods\|sxc\)$' -exec cvzf

/root/openofficefiles.tar.gz {} \;

Can someone tell me how to make this work? (I realize that there are

more openoffice extensions.)

Thanks,

Rob

--

redhat-sysadmin-list mailing list

redhat-sysadmin-list redhat com

https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list


------------------------------------------------------------------------

--
redhat-sysadmin-list mailing list
redhat-sysadmin-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]