sed -i -e "s/:[0-9]*\.[0-9]*//" -e "s/#[0-9]*//" /path/to/file
re='(.*):[0-9.]+[0-9]+(.*)#[0-9]+(.*)'
while read LINE; do
while [[ $LINE =~ $re ]]; do
LINE=${BASH_REMATCH[1]}${BASH_REMATCH[2]}${BASH_REMATCH[3]}
echo $LINE >> /path/to/new_file
done
done < /path/to/old_file