Network probe script

Hi. I just wrote my first shell script, it's very ugly but it works. I was wondering if someone could help me clean it up a bit.

Original Problem: Current command-line tool (FIND-NEIGHBORS.exe) outputs MAC addresses of neighboring wireless devices and I need the IP address instead; fortunately our current IP scheme assigns the LAST TWO hexadecimal values of the MAC address as the MIDDLE two octets in the IPv4 address. All devices are on the 10.0.0.0 subnet and all wireless interfaces end with a 1 in their last octet. (i.e. A device with the MAC address - 00:05:12:0A:A6:08 would have the IP address 10.166.8.1) Here's the code:

#! /bin/bash
## Read user input and execute FIND-NEIGHBORS command to query the specified device. It takes a few seconds for the FIND-NEIGHBORS tool to return its output.
echo -e "ENTER IP ADDRESS: \c "
read IPADDRESS; FIND-NEIGHBORS.exe $IPADDRESS > INPUT.TXT ; sleep 5 ;

Here's the output from the FIND-NEIGHBORS command,INPUT.txt:

MAC SIG RATE
00:05:12:0A:A6:08 -83 1.5
00:05:12:0A:8F:2F -64 6.0
00:05:12:0A:A1:6A -46 6.0
00:05:12:0A:A5:8D -58 1.5
00:05:12:0A:A4:9A -64 1.5
00:05:12:0A:A2:9B -54 1.5
00:05:12:0A:AB:A4 -36 6.0
00:05:12:0A:87:C8 -37 6.0

This part uses the grep command to parse out the last two hexadecimal values in each MAC address from INPUT.txt and output them to TEMP1.txt and TEMP2.txt

TEMP1.txt contains the FIRST of the LAST TWO hexadecimal values, (ie. A6) TEMP2.txt contains the SECOND of the LAST TWO hexadecimal values, (ie. 08)

cat INPUT.txt | grep 00 | cut -d ":" -f5 > TEMP1.txt ;
cat INPUT.txt | grep 00 | cut -d ":" -f6 | cut -d "-" -f1 | cut -d ":" -f1 > TEMP2.txt ;

## The next two commands convert the hexadecimal values into decimal values and outputs them to TEMP3 and TEMP4 respectively

cat TEMP1.txt | while read value; do printf "%d\n" 0x$value; done > TEMP3.txt ; cat TEMP2.txt | while read value; do printf "%d\n" 0x$value; done > TEMP4.txt ;

## This command combines TEMP3.txt and TEMP4.txt into one file and appends the appropriate numbers to make it an IPv4 address.
paste TEMP3.txt TEMP4.txt | awk '{print "10."$1"."$2".1"}' >> TEMP5.txt ;

TEMP5.TXT
10.166.8.1
10.143.47.1
10.161.106.1
10.165.141.1
10.164.154.1
10.162.155.1
10.171.164.1
10.135.200.1

After the IP addresses are written to the TEMP5.txt this data is then used as an input to scan for more devices on the network.

cat TEMP5.txt | while read line ; do FIND-NEIGHBORS.exe $line > INPUT.txt ; sleep 5 ;
cat INPUT.txt | grep 00 | cut -d ":" -f5 > TEMP1.txt ; sleep 5 ; cat INPUT.txt | grep 00 | cut -d ":" -f6 | cut -d "-" -f1 | cut -d ":" -f1 > TEMP2.txt ;

cat TEMP1.txt | while read value; do printf "%d\n" 0x$value; done > TEMP3.txt ; cat TEMP2.txt | while read value; do printf "%d\n" 0x$value; done > TEMP4.txt ;
paste TEMP3.txt TEMP4.txt | awk '{print "10."$1"."$2".1"}' >> TEMP5.txt ; sleep 5 ; done

Alright, that's the bulk of it. I hope this isn't too confusing and it gives you a general idea of what I am trying to accomplish. Any help with this would be greatly appreciated.