Answer the question
In order to leave comments, you need to log in
How to write a script that makes a table of 2 variables?
Hello, I can’t understand why the final table of 2 variables is not obtained
#!/bin/bash
# Вытаскиваем Name
name=`awk '{print $9}' PMZ_genes.gff3.txt | grep -oP ";\KName=[^;]+" | uniq`
# Каждому набору символов в строке должно соответствовать имя name
for pmz in `awk '{print $9}' PMZ_genes.gff3.txt | cut -c4-14 | uniq`
do
echo "Symbols $pmz correspond to $name"
done
Answer the question
In order to leave comments, you need to log in
names=`awk '{print $9}' PMZ_genes.gff3.txt | grep -oP ";\KName=[^;]+" | uniq`
for pmz in `awk '{print $9}' PMZ_genes.gff3.txt | cut -c4-14 | uniq`
do
read -r
echo "Symbols $pmz correspond to $REPLY"
done <<< "$names"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question