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

[cobalt-developers] Re:Shell command (Or-Or)



"Or-Or" <or-or.list2@xxxxxxxxxxxxxx> wrote:
> On a Raq3, I'm trying to gzip a site with FrontPage extensions in it's
> entirety except for the FrontPage folders (_vti_cnf, _vti_bin, & _vti_txt).

Try this:

cd <top of web site>
find * -path "*_vti_*" -prune -o -print |xargs tar cvf /tmp/t.tar

ie. find all files with _vti_ in the path, prune them from the results and then print what's left. Pass what you're printing as arguments into tar.

Tried it here and it's working for me.


Cheers,
Ian