#!/bin/bash
cd $PEGASUS_SCRATCH_DIR
/bin/sort -k 8gr,8gr "$1" | awk 'BEGIN{OFS="\t"}{$r="PEAK_"NR; print $0;}' > "$2"