awk one liner to convert Linux MAC into hostid for flexlm
ifconfig | grep eth0 |grep HW| awk ‘{print tolower($5)}’| sed ’s/://g’
ifconfig | grep eth0 |grep HW| awk ‘{print tolower($5)}’| sed ’s/://g’
Sum up the size of all the files and print the sum only.
du -sk *| sort -n| awk ‘{sum +=$1} END {print sum/1024/1024 "G"}’