Created
October 24, 2017 15:44
-
-
Save SamEureka/fd83dd2fbe3b5cdec3b857b9b1047100 to your computer and use it in GitHub Desktop.
shell iterate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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