"Mike Glaser" <mikeg at tcamerican.com> writes:

> I am working on a shell script to run a tape backup for one of my servers and I 
> have a small problem.
> 
> Since I am using cpio, I first generate list of all files on the server with the find 
> command. Then I want to go back and remove any directories that meet a 
> certain pattern (like ' ^ \ /proc \ / ' ) that is included in another 'exclude' file. I 
> thought of one way to do that using 'grep -v .... > somefile.txt'
> 
Just do it with find.
find / ! -name '/proc' ! -name 'foo' ...
You can use regular expressions in the names too.
-- 
Jon Schewe | http://eggplant.mtu.net/~jpschewe
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org