#!/bin/bash dev="/dev/" index=0 cnt=$(who | wc -l) for((i=0;i ${list[$i]} done