Skip to content

Instantly share code, notes, and snippets.

@espio999
Last active April 30, 2022 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espio999/7a69426507f99920d26dcd41b080a30c to your computer and use it in GitHub Desktop.
Save espio999/7a69426507f99920d26dcd41b080a30c to your computer and use it in GitHub Desktop.
42 SILICON VALLEY Piscine 2017 Day01 Exercise 07
cat /etc/passwd | cut -d ":" -f 1,2,3,4,6,7 | sed -n 2~2p | cut -d":" -f 1 | rev | sort -r | tr [:cntrl:] "," | sed 's/,/, /g' | rev | cut -c 3- | sed 's/^/./' | rev | tr -d [:cntrl:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment