topical media & game development

talk show tell print

basic-shell-app-a-exercise-08-03.sh / sh



  cut -d: -f1,5,6,7 /etc/passwd | 
      grep -v sbin | 
      grep home    | 
      grep sh      | 
      sort         |  
      cut -d: -f1,2,4 > users.txt
  
  awk -F':' ' { printf( "%-12s %-40s\n", $1, $2 )   } ' users.txt
  
  # Clean up the temporary file.
  /bin/rm -rf users.txt
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.