HCF of 396 and 1080 is the largest possible number which divides 396 and 1080 without leaving any remainder. The methods to compute the HCF of 396, 1080 are explained here.
# OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0.ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor....