Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: removing directories with wildcard glob in OS-portable way

by BrowserUk (Pope)
on Dec 30, 2012 at 01:15 UTC ( #1010868=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E"system q[for /d %d in (scale-*) do @rd /q /s %d]"
    
  2. or download this
    perl -MFile::Path -MFile::Spec -wE"File::Path::remove_tree(glob(File::
    +Spec->catdir('.','scale-').'*'));"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010868]
help
Chatterbox?
[Corion]: Hurr. Yesterday I played around with ffmpeg as a new toy and found its "scene" filter great - it detects scene changes. Now I could write a module that splits a given video on its cuts into different scenes. Except I have no use case for that :)
[Corion]: (and also, writing yet another FFmpeg module just to wrap system() and grep through its output isn't all that great ...)
[erix]: cut out advertisements from movies? :)
[erix]: robably not possible (or it would have been done already)
[Corion]: erix: Oooh - yeah, that would be a good application of this, true (except that I don't consume movies-with- separate- advertisements that much nowadays :) )
[erix]: yes, it's old annoyance :)
[Corion]: erix: I think it's basically quite possible through a variety of means - change in audio level (advertisements are usually louder), common "advertisement starting" blocks, fade in/out of TV logo

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2018-05-24 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?