我想用beautifulsoup提取一些文本。 会有重复项,所以我想做一个变量并存储所有数据,以便清除重复项。
Node=`clush -g myvms hostname | awk -F ":" '{print $1}'`
root@myvm1:/home/spasham2
for i in Node
do
clush -g myvms systemctl status sshd.service | grep running
done;
myremotevm1: Active: active (running) since Tue 2019-05-07 06:54:58 UTC; 1 months 25 days ago
myremotevm2: Active: active (running) since Tue 2019-05-07 06:54:58 UTC; 1 months 25 days ago
myremotevm3: Active: active (running) since Tue 2019-05-07 06:54:58 UTC; 1 months 25 days ago
如何将所有这些imdb变量存储在一个大变量中?