nmap --open 192.168.1.80-254 -p 22 -oG - | grep open | grep -v Nmap | awk '{ print "title: Lego " $2 ";; command: ssh-copy-id robot@" $2 ";; profile: laptops"}' > tabsfile konsole --tabs-from-file ./tabsfile nmap --open 192.168.1.80-254 -p 22 -oG - | grep open | grep -v Nmap | awk '{ print "scp -r robot@" $2 ":/var/lib/connman/wifi_* ."}' > configs_from_lego.bash bash ./configs_from_lego.bash nmap --open 192.168.1.80-254 -p 22 -oG - | grep open | grep -v Nmap | awk '{ print "scp -r wifi_* robot@" $2 ":/var/lib/connman/."}' > configs_to_lego.bash bash ./configs_to_lego.bash