The situation has reached a point where all Zimbabweans regardless of political affiliation, race, or religion need to sit down and say how can we make Zimbabwe better. Human rights must be respected COMPLETELY. #Zimbabweanlivesmatter
@econetzimbabwe your network appears slow because your DNS servers are extremely slow.
Changing to custom dns servers improves speed, but this is not an option for the average Zimbabwean Android user.
Please work on this.
@iamsupercode This won't work well for large lists. You are iterating the list on each duplicate check, this increases the algorithmic complexity.
A better solution:
import collections
def duplicates(l) : return [item for (item, count) in collections.Counter(l).items() if(count >1)]
@TerraMeijar Whilst correct, mv is called for each file match and there is overhead for every process of mv spawned. This makes it slower.
A faster approach would be
find -type f -name "*.mp4" -print0 | xargs -0 mv \{\} mp4/