Try grep command
Code:
grep -e '^9000232' /path/to/file
A sample script:
Code:
#!/bin/bash
number=$1
FILE="/path/to/file"
if [ $# -eq 0 ]
then
echo "$0 number"
exit 1
fi
if [ ! -f $FILE ]
then
echo "$FILE - not a file"
exit 2
fi
grep -e "^${number}" ${FILE}