Thank you, I use these code, and the column 6 will be kept after bedtools intersect
cut -f 1,2,3,4,6 peaks.txt | awk '{print $2"\t"$3"\t"$4"\t"$1"\t"$5}' >peak1.bed
pos2bed.pl peaks.txt > peak2.bed
awk 'NR==FNR {h[$4] = $5; next} {print $1"\t"$2"\t"$3"\t"$4"\t"$5"\t"$6"\t"h[$4]}' peak1.bed peak2.bed >peaks.bed
chr11 117467921 117468098 chr11-2 1 + 86.8
chr17 39636555 39636732 chr17-2 1 + 85.6
chr2 231281278 231281455 chr2-2 1 + 83.3
but still 1 questions: "#" mean any pattern I can input, is that right? I didnot use it