Advertisement
ezarchproject

userlist.awk

Feb 5th, 2015
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 2.08 KB | None | 0 0
  1. #!/bin/awk -f
  2. #
  3. # ARCH-Admin - User List awk sctipt
  4. #
  5. # A Dialog Menued version of the Admin Program. Similar
  6. # type of system is found on SCO UNIX. SCO admin is written in TCL.
  7. #
  8. # Some ideas came from CDM (Console Display Manager)  as this is for
  9. # installing it was changed to CSM.
  10. #
  11. #-------------------------------------------------------------------------------
  12. # Script Created by Vincent - EZ-Arch Project (ezarchproject@gmail.com)
  13. # Distro Sourceforge - https://sourceforge.net/projects/ezarchlinux/
  14. # Distro Dailymotion - http://www.dailymotion.com/ezarchproject
  15. # Distro Youtube -  https://www.youtube.com/channel/UC0k-5Jqbbg4o2jGnTSslZBg
  16. # Distro's Pastebin  http://pastebin.com/u/ezarchproject
  17. #
  18. #
  19. #-------------------------------------------------------------------------------
  20. #This program is free software: you can redistribute it and/or modify
  21. #it under the terms of the GNU General Public License as published by
  22. #the Free Software Foundation, either version 3 of the License, or
  23. #(at your option) any later version.
  24. #
  25. #This program is distributed in the hope that it will be useful,
  26. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  27. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  28. #GNU General Public License for more details.
  29. #
  30. #You should have received a copy of the GNU General Public License
  31. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  32. #-------------------------------------------------------------------------------
  33. # Run this script after your first boot with archlinux (as root)
  34. #--------------------------------------------------------------------------------
  35. # Explaination of the Script:
  36. #
  37. # Run the Script file with /etc/passwd and it will list the file
  38. # fields in the password file.
  39. #
  40. # $ scriptname /etc/password
  41. #
  42. ##########################################################################
  43.  
  44. BEGIN{
  45. print "Username" "\t\t\t"  "UID"  "\t" " Comment"
  46. print "=========================================================================="
  47. FS=":"}
  48. {printf "%-23s \t %-5s \t %-23s\n", $1, $3, $5}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement