Modifications for using history file
Formatting line number for search