Skip to content

Instantly share code, notes, and snippets.

@cormobro
Created November 13, 2019 16:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cormobro/e66d14a2886514ca93979a50f4a4fc86 to your computer and use it in GitHub Desktop.
Save cormobro/e66d14a2886514ca93979a50f4a4fc86 to your computer and use it in GitHub Desktop.
dwssap
cat /etc/passwd | grep "*:" | cut -d ":" -f1 | sed -n 'n;p' | rev | sort -r | awk 'NR >= '$FT_LINE1' && NR <= '$FT_LINE2'' | tr '\n' ',' | sed '$ s/.$/./' | sed 's/, */, /g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment