blast 6 format matches this. You will need to cut column 2, 9, 10 and then use something like
blastdbcmd -db database -entry ID -range start-stop -strand (if needed) -outfmt %f for a single ID. ID will be in column 2. Start and stop values will come from columns 9 and 10. You can use
awk to get the values you need. You will have to wrap
blastbdcmd command in a loop so you can pass in ID, Star and Stop values for each call.
Note: This may result in duplicates (if two sequences hit the same ID and range) unless you take care of removing redundancy before you run
If the database is from NCBI you could also use EntrezDirect to get this info as well.
Edit: ID comes from column 2. Changed.