I need to find if the cpu speed is unique using python. Need the equivalent of the below script in python:
cat /proc/cpuinfo | grep MHz | awk -F":" '{print $2}' | uniq | wc -l
This is finding the speed of cpu and check if they are all unique. Returns 1 if unique, more than 1 if not unique.
Any other suggestions to check the same are also invited.