You are not logged in.
Pages: 1
I'm trying to get all flash videos in the cache moved to another directory... Is this possible with some sort of script?
Offline
Hmmm… This one copies all files which have 'flash' (could by x-shockwave-flash) string in mime type to /tmp/flash. Hope it will be helpful.
for i in ~/.opera/cache4/* ; do file -i -F '' $i | grep flash | cut -d ' ' -f 1 | xargs cp -t /tmp/flash 2>/dev/null ; done
UPDATE:
Sorry, there was a little bug, I've just changed 'video' to 'flash' ('video' coundn't match 'x-shockwave-flash').
Last edited by zergu (2008-12-25 21:16:38)
Offline
I'll give it a try tonight. Thanks for the scipt!
Offline
Pages: 1