Skip to content
Snippets Groups Projects
Commit 00459668 authored by Ashrith Sagar Yedlapalli's avatar Ashrith Sagar Yedlapalli :speech_balloon:
Browse files

Update to_aggrescan.sh

parent 3709e05a
No related branches found
No related tags found
No related merge requests found
Pipeline #29571 failed
#!/bin/bash
# Adds FASTA headers to every sequence in sequences.txt
file="$1"
new_file="${file//.txt/_aggrescan.txt}"
echo "Creating ${new_file}"
touch "${new_file}"
# Erase file.
cat > "${new_file}" <<EOF
EOF
i=1
while read line; do
cat >> "${new_file}" <<EOF
> Sequence_$i
${line}
EOF
i=$((i+1))
done < "${file}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment