Usb port address

digodox
Hi.. I'm trying to have access to the number of the port that a device was
plugged. When i plug an usb flash disk for example in the port number 3,
how can i get this number! I'm using shell script attempting to mount the
device on the first port in the /udisk1 folder, the device on port 2 in
/udisk2 folder for example!!

any ideas??