Hi,
I try to get the names associated with a reference number (variable $LEP_ref hereunder) from a table (Artenliste) to add it to my table TL_dissections. I wrote the following script, but apparently it is not possible to cat another file when doing a while loop. Would someone have the solution?
Here is the script:
cat TL_dissections | while read line;
do LEP_ref=$(cut -f 7);
species_name=$(cat Artenliste | grep $LEP_ref | cut -f 2,3);
echo -e "$LEP_ref t $species_name";
Thank you for your help!
Théo
برچسب:
نویسنده: استخدام کار