VeroIarrachtai / Abies_vs_ozone

In this repository you can get all the data and scripts to run Abies vs Ozone's Project
2 stars 1 forks source link

-bash: error sintáctico cerca del elemento inesperado `;' #1

Closed VeroIarrachtai closed 4 years ago

VeroIarrachtai commented 4 years ago

I have issue with my script 5.1_Count_genes_bamfile.sh I can't run this part, but before I didn't have any problem.

# Delete "space characters" at the beggining of each line and change the "space" between the number of contig occurrences and the contig_id for a "tab"

for f in DPVR1_S179 DPVR2_S180 DPVR3_S181 DPVR4_S182 DPVR5_S183 DPVR6_S184 DPVR7_S185 DPVR8_S186 DPVR9_S187 DPVR10_S188 DPVR11_S189 DPVR12_S190 DPVR13_S191 DPVR14_S192 DPVR15_S193 DPVR16_S194 DPVR17_S195 DPVR18_S196;
do awk '{ sub(/^[ \t]+/, ""); print }' ${f}_sw10L50.genesorder.txt | sed 's/ /\t/' >;
done

The error I get is:

-bash: error sintáctico cerca del elemento inesperado `;'
AliciaMstt commented 4 years ago

The error seems to be that:

VeroIarrachtai commented 4 years ago

You were right!!! the code line had wrong files' address

do awk '{ sub(/^[ \t]+/, ""); print }' ../../data/TXT/${f}_sw10L50.countgenes.txt | sed 's/ /\t/' > ../../data/TXT/${f}_sw10L50.genesorder.txt;