daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest May 16th, 2018 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2.  
  3. [ ${#@} -ne 2 ] || { echo "Usage: $0 <loginfile> <passwordfile>" >&2; exit 1; }
  4.  
  5. DELIM=';'
  6. IFS=",$IFS"
  7.  
  8. exec 3<$1
  9. exec 4<$2
  10.  
  11. while read -u 3 l && read -u 4 p; do
  12.     logins=(${logins[@]} $l)
  13.     passwords=(${passwords[@]} $p)
  14. done
  15. for ((i=0; i<${#logins}; i++)); do
  16.     echo "${logins[$i]}${DELIM}${passwords[$i]}"
  17. done
  18.  
  19. 3<&-; 4<&-
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
Pastebin PRO 'AUTUMN SPECIAL'!
Get 40% OFF Pastebin PRO accounts!
 
Top