Help using find command
Ron McKeever
rmckeever at earthlink.net
Tue Oct 31 22:06:07 UTC 2006
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 at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Rob Myroon
Sent: Thursday, November 30, 2006 1:47 PM
To: redhat-sysadmin-list at 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 at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20061031/5775cd36/attachment.htm>
More information about the redhat-sysadmin-list
mailing list