Can someone explain to me why the following code first prints an unfiltered output then the filtered one? Thanks.
df -k | /usr/xpg4/bin/awk -v maxpct=$1 '/^[^F]/
{ array[i++] = $6; arr3[j++] = $3; arr2[k++] = $2;}
END {
for ( i=1 ; i<=j; i++ )
{
if ( arr2[i] != 0 )
arraypct[i] = (...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.