Skip to content

Instantly share code, notes, and snippets.

@Jetchisel
Created February 2, 2014 09:39
Show Gist options
  • Save Jetchisel/8765399 to your computer and use it in GitHub Desktop.
Save Jetchisel/8765399 to your computer and use it in GitHub Desktop.
#!/bin/bash
mapfile -t special_users < specia_users.txt
printf -v users '%s|' "@(${special_users[@]})"
users=${users%%|}
while read -ra line; do
[[ ${line[0]} = $users ]] && command wondersharper "${line[1]}" 960 960
done < online_users.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment