Skip to content

Instantly share code, notes, and snippets.

@SamEureka
Created October 24, 2017 15:44
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 SamEureka/fd83dd2fbe3b5cdec3b857b9b1047100 to your computer and use it in GitHub Desktop.
Save SamEureka/fd83dd2fbe3b5cdec3b857b9b1047100 to your computer and use it in GitHub Desktop.
shell iterate
#!/bin/bash
LIST=(`screen -list |grep -o '[a-z]\{10\}'`)
for i in "${LIST[@]}"; do
work="$i"
echo ${work}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment