Im doing this script and I cant see to find a way to accordingly mount the devices stored in the "devs" variable into the mount points listed in "mntpnt".
Hope Im being clear explaining myself, heres the script so far:
#!/bin/bash
count=$(find /dev/sd{b..z}1 2>/dev/null | wc -l)
dirnames=$(printf "win%d " $(seq $count))
for i in $dirnames
do
sudo mkdir -p /mnt/$i
done
devs=$(find /dev/sd{b..z}1 2>/dev/null)
mntpnt=$(find /mnt/win*)