Submitted Questions

  • How to grep directories

    How to grep directories has reached above 80% from the df output using basin grep command.below are the steps i have used df -h > date.ksh grep "%" date.ksh >space.ksh cut -c 40-44,45-80 space.ksh > %.ksh grep "[80-10][0]%" %.ksh see the output after above cmd $ grep "[80-10][0]%" %.ksh 100% /opt/tivoli/tsm 80% /prod/users/edw 10% /prod/home01/sand I am not able to see the 81%,.......89% etc..how...

    Asish

    • Dec 28th, 2017

    Df -h | tr % /32 | awk $5 > 80

    suman chakraborty

    • Nov 8th, 2016

    Df -k | tr -s " "|awk {FS=" ";}{if ( substr($5,1,2) >= 80 ) print $1;}

  • FDisk

    What is the use of fdisk cmd? How to create new file system on unix terminal?