Por similitud:
la funcion la he llamado igual tendre q renombrarla ..
function Parseforap {
## mariconadas las justas
ap_array=`cat $DUMP_PATH/dump-01.txt | grep -a -n Station | awk -F : '{print $1}'`
head -n $ap_array $DUMP_PATH/dump-01.txt &> $DUMP_PATH/dump-02.txt
clear
echo ""
echo " La info del txt referente user conectados a AP´s"
echo ""
echo " SMAC, Fts, Lts, Power,packets,ProbedESSIDs,BSSID
echo ""Esto es lo que pone le txt
i=0
while IFS=, read STATIONMAC FTS LTS POWER PACKETSs PROBEDESSID BSSID ;do
longueur=${#MAC} /esta declarada pricipio del sh sí son 17...
if [ $longueur -ge 17 ]; then
i=$(($i+1))
echo -e " "$i")\t"$STATIONMAC"\t"$PROBEDESSID"\t"$SMACc
astationmac[$i]=$STATIONMAC
aprobedessid[$i]=$PROBEDESSID
asmacc[$i]=$SMACc
fi
done < $DUMP_PATH/dump-02.txt
echo ""
echo " Seleccione un AP de la lista"
echo ""
read choice
stationmac=${astationmac[$choice]}
probedessid=${aprobedessid[$choice]}
smacc=${asmacc[$choice]}
usuariolejitimo=$stationmac
Host_MAC=$probedessid
Host_name=$smacc
hasta aqui creo q esta pero ...tengo un array de 3 columnas
user´ap mac´ap nombre-ap
fin=$(($acouper-idlength))




??
Host_SSID=${ssid:1:fin}




}
ideas?


?