12 Jun
2012
12 Jun
'12
5:48 a.m.
On 12/06/12 11:48, Jeremy Huntwork wrote:
On Monday, June 11, 2012 at 9:26 PM, Jeremy Huntwork wrote:
This is what I'm after. Instead of else ; rm -f ${pt}, maybe do:
else ; find "${pt%*}" ! -type d -name "${pt##/*}" -exec rm -f -- '{}' +
Ugh, typos in my substitutions. should be
find "${pt%/*}" ! -type d -name "${pt##*/}" -exec rm -f -- '{}' +
That's what I get for sending emails when I'm tired.
Am I missing something here? How does that differ from the plain "rm -f ${pt}"? Allan