Help using find command
Rob Myroon
rob.myroon at tartan.ca
Tue Oct 31 22:28:30 UTC 2006
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 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
>
>
> ------------------------------------------------------------------------
>
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
More information about the redhat-sysadmin-list
mailing list