Categorie├źn
BASH Tips Uncategorized

BASH Tips

Loop to array

#!/bin/bash ## Array declare -a arr=("x.x.x.x" "x.x.x.x" "x.x.x.x")

## Now Loop for i in "${arr[@]}" do echo $i ## List Shares

`smbclient -L $i -U domain\\user%password`
`echo "--"`

done