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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. remurden

    df -g output in columns in AIX

    I am having trouble creating an alias for this in my .profile. I tried this: alias dfg='df -g |awk -F" " '{sub(/blocks/,"");if (length($1) > 15 ){printf("%s\t%s\t%s\t%s\t%s\n",$1,$2,$3,$4,$5)} else {printf("%s\t\t%s\t%s\t%s\t%s\n",$1,$2,$3,$4,$5)} } '' the result i get when i logback in is...
  2. remurden

    df -g output in columns in AIX

    thanks, works perfect! Learned something new with awk. Thanks, Richard
  3. remurden

    df -g output in columns in AIX

    I grabbed this from a previous thread that is now closed. I used this to get the ouput for the df command: df|awk -F" " '{ if (length($1) > 15 ){printf("%s\t%s\t%s\t%s\t%s\n",$1,$2,$3,$4,$5)} else {printf("%s\t\t%s\t%s\t%s\t%s\n",$1,$2,$3,$4,$5)} } ' problem is when i use df -g |awk -F" " '{...

Part and Inventory Search

Back
Top