Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by dido78

  1. dido78

    question about using arrays

    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] = (...

Part and Inventory Search

Back
Top