Skip to content

Instantly share code, notes, and snippets.

@valsaven
Created December 3, 2017 05:19
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 valsaven/2c611d52fe1c5435bd3f03fc80054fdb to your computer and use it in GitHub Desktop.
Save valsaven/2c611d52fe1c5435bd3f03fc80054fdb to your computer and use it in GitHub Desktop.
Bash Scripts
head -10 logins.txt
sed -n 1,10p /etc/group
awk 'FNR <= 10' /etc/passwd
perl -ne'1..10 and print' /etc/passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment