#!/bin/bash # /usr/local/bin/user_id # https://crystalfaeries.net/posix/bin/user_id # celeste:crystalfaery USER_ID 2016-11-14 21:24:42+00:00 # http://www.commandlinefu.com/commands/view/18108/pretty-print-usergroup-info-for-a-given-user id "${1}" | sed s/' '/'\n'/g | sed s/,/',\n '/g | sed s/'('/' ('/g | sed s/uid/' uid'/g | sed s/gid/' gid'/g | sed s/=/' = '/g