topical media & game development

talk show tell print

basic-shell-11-listusers.sh / sh



  
  cut -d: -f1,5,7 /etc/passwd | grep -v sbin | grep sh | sort > 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.