daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. usuarios=()
  3. for i in $( getent group users ); do
  4.       usuarios+=$i
  5. done
  6. if [ $1 = "-b" ] ; then
  7.      if [ ${#usuarios[@]} -ge $2  ]; then
  8.             echo  ${usuarios[ $(expr $2 - 1) ]}
  9.      fi
  10. fi
  11. if [ $1 = "-l" ]; then
  12.        echo ${#usuarios[@]}
  13. fi
  14. if [ $1 = "-i" ]; then
  15.         echo "hola"
  16.         echo ${usuarios[@]}
  17. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top