Maybe can use -prune option of find to send file list to tar:

cd /home
find ./user01 -name mark03 -prune -o -print

> -----Original Message-----
> > 
> > I can't seem to get the tar command right.  I wanted to tar 
> a directory but
> > EXCLUDE one of the subdirectory in it.
> > Example:
> > /home/user01
> > /home/user01/mark01
> > /home/user01/mark01/ask.txt
> > /home/user01/mark01/ghost.txt
> > /home/user01/mark02
> > /home/user01/mark02/ask.txt
> > /home/user01/mark02/ghost.txt
> > /home/user01/mark03
> > /home/user01/mark03/ask.txt
> > /home/user01/mark03/ghost.txt
> > 
> > I wanted to tar everything except /home/user01/mark03/*
> > man pages on tar says there is an option to exclude files 
> but I just can't
> > get it to work for me. 
> > 
> > Can someone show me how to do this right?
> > 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: <[EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to