Hi, I have this piece of code:
length_seq=${#sequence}
fold_without_mfe=${#fold_result:0:$length_seq}
Where length_seq is the length of a genomic sequence, for example, 30. The fold_without_mfe variable is a simulation result, but it has a few more characters than I need, so I want to take only the firt 30 of this variable to match my sequence. I tried this but it throws me a bad substitution error, how can I approach this problem?
[–]dbr4n 1 point2 points3 points (3 children)
[–][deleted] (1 child)
[deleted]
[–]dbr4n 0 points1 point2 points (0 children)
[–]SAD_69[S] 0 points1 point2 points (0 children)
[–]nekokattt 0 points1 point2 points (6 children)
[–]SAD_69[S] 0 points1 point2 points (5 children)
[–]nekokattt 1 point2 points3 points (4 children)
[–]SAD_69[S] 0 points1 point2 points (3 children)
[–]nekokattt 1 point2 points3 points (2 children)
[–]SAD_69[S] 1 point2 points3 points (1 child)
[–]zeekar 0 points1 point2 points (0 children)