Help using find command

Rob Myroon rob.myroon at tartan.ca
Tue Oct 31 21:49:51 UTC 2006


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




More information about the redhat-sysadmin-list mailing list