Mailing List archive

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

[vdr] Re: How to delete "now" the recordings?



On Sun, Jan 05, 2003 at 10:25:07PM +0100, Gregoire Favre wrote:
> On Sun, Jan 05, 2003 at 12:16:53PM +0100, Matthias Schniedermeyer wrote:
> 
> > If you have the "plain old simple"-Layout of dirs:
> > rm -rfv /video/video?/*/*.del
> > rmdir /video/video?/*
> > 
> > ??
> > 
> > Or for the deeper one:
> > 
> > find /video -type d -name "*.del" -exec rm -rf {} \;
> > find /video -type d -empty -exec rmdir {} \;
> > 
> > 
> > Put the matching one into command.conf and be happy. :-)
> > Btw I haven't tested the statements above, but they SHOULD be correct. :-)
> 
> Oups, it can't work... I have just tried it :-(
> I have /video0 /video1 /video2 and the problem is that the *.del are
> only in the /video0, of course I could use sed or awk to do this, but I
> find such solution pretty uggly... and I also dislike having a
> command.conf: it makes one more menu...

Ups2

The correct(tm) command should be this. The other deletes "a bit(tm)" to much. :-)

find /video -type d -name "*.del" -exec find {} -type l -printf %l\\n \; | xargs rm




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index