If you want a tab-delimited output that can be easily imported into R, you can use
xtract, another tool from the Entrez Direct package as follows:
esearch -db gene -q LOC105370787 | esummary | xtract -pattern DocumentSummary -element Id,Name -group GenomicInfoType -element ChrAccVer,ChrStart,ChrStop
105370787 LOC105370787 NC_000015.10 40083224 40075942
There's additional information in the XML output of esummary that may be of interest to you.