A typical FIMO output looks like following (NOTE: This is with version 4.11.4, might slightly differ with other version)
#pattern name sequence name start stop strand score p-value q-value matched sequence
Homeodomain.UP00163_1 CLYBL|chr13|100529567|100530067 231 247 - 11.982 4.03e-05 TTCTTTAATTAATACAA
Homeodomain.UP00163_1 CLYBL|chr13|100529567|100530067 232 248 + 14.036 9.32e-06 TGTATTAATTAAAGAAT
Homeodomain.UP00163_1 CLYBL|chr13|100450472|100450972 247 263 + 10.5405 9.06e-05 TAACCTAATTAGATTCT
You can try the following to get a BED file
cat fimo_result.txt | grep -v pattern | cut -f2 | tr '|' '\t' | cut -f2-4 | sort -k1,1V -k2,2n > fimo_to_bed.bed
output:
chr1 202997705 202998205
chr2 207998147 207998647
chr3 140986720 140987220
chr13 100450472 100450972
After answering, I found you've already asked the question
FIMO GFF output to standard BED
My apologies neglected to search back, however your response adds to my understanding of how to do this so thanks.