Files
hifiasm/sort_fasta.sh
Haoyu Cheng d5327fe9ee phasing
2019-09-02 10:30:14 -04:00

11 lines
254 B
Bash

#!/bin/bash
# My first script
if [ $# -eq 1 ]
then
echo "input file is: "$1
echo $1" | paste - - | sort -k1,1 -t \" \" | tr \"\t\" \"\n\" > sort_"$1
cat $1 | paste - - | sort -k1,1 -t " " | tr "\t" "\n" > sort_$1
else
echo "./sort_fasta.sh file_name"
fi