Re: finding every file not in a list

2010-01-27 Thread Lowell Gilbert
"Aryeh M. Friedman"  writes:

> Lowell Gilbert wrote:
>> *not* OT, I would say...
>>
>> "Aryeh M. Friedman"  writes:
>>
>>   
>>> I have a list of files that should be in a dir tree and want to remove
>>> any files from the tree not in list (i.e. if it is on the list keep it
>>> else rm it)... any quick way to do this?
>>> 
>>
>> mtree(8)
>>
>>   
> Tried aelpf -p master | mtree -p ~aegis/master/baseline/" (ignore the
> aelpf it is a command unique to devel/aegis) but got the following:
>
> mtree: line 1: slash character in file name

You'll need to turn the file list into an mtree specification before you
can use it to do this.  Why don't you try one of the other suggestions
(which may be usable as-is)?


-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: finding every file not in a list

2010-01-27 Thread Aryeh M. Friedman

Lowell Gilbert wrote:

*not* OT, I would say...

"Aryeh M. Friedman"  writes:

  

I have a list of files that should be in a dir tree and want to remove
any files from the tree not in list (i.e. if it is on the list keep it
else rm it)... any quick way to do this?



mtree(8)

  
Tried aelpf -p master | mtree -p ~aegis/master/baseline/" (ignore the 
aelpf it is a command unique to devel/aegis) but got the following:


mtree: line 1: slash character in file name

The reason is here is a very small snippet of aelpf's output:


data/config/dns/agilejavatools.com.db
data/config/dns/istudentunion.com.db

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: finding every file not in a list

2010-01-27 Thread Lowell Gilbert
*not* OT, I would say...

"Aryeh M. Friedman"  writes:

> I have a list of files that should be in a dir tree and want to remove
> any files from the tree not in list (i.e. if it is on the list keep it
> else rm it)... any quick way to do this?

mtree(8)

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"