#!/bin/bash awk '{ n = $0 cnt = 0 while (n > 0) { n = int(n / 2) cnt += 1 } print cnt }'