Entering edit mode
5.0 years ago
Badh2
•
0
Hello,
I want to remove the chacater ' (apostrophe) from a taxon name in all my nexus alignments (~600). I got it worked for a single file but I need help to put this into a loop. Any help on this is appreciated.
Following worked for a single file.
tr -d "'" < test.nex > testX.nex
Following are what I tried for loops, but nothing worked!
for filename in *.nex; do
tr -d "'" $filename;`
done
for filename in $(cat *.nex) do;
'tr -d "'"' $filename > $filename.new
done
tr -d "'" < *.nex
Thanks!
It worked with a little modification Genomax. Thanks! I used following with a just an extra <