mirror of
https://github.com/chhylp123/hifiasm.git
synced 2026-09-15 12:47:57 +08:00
11 lines
254 B
Bash
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
|