Hi,
I am trying to split string into substring based on pattern in bash (or) based on last occurance of a digit
y=`echo "AB097865ATCTCTAGCAGTGGCGCCCGAACAGGGCACGCGAA"|grep "[AT|AC|AG|AA|CT|CC|CA|CG|GT|GC|GA|GG|TT|TC|TA|TG]"`
I tried to do like this but failed
I want to get the substring after the last digit and
result should be
ATCTCTAGCAGTGGCGCCCGAACAGGGCACGCGAA
Thanks so much for help
Anusha
I am trying to split string into substring based on pattern in bash (or) based on last occurance of a digit
y=`echo "AB097865ATCTCTAGCAGTGGCGCCCGAACAGGGCACGCGAA"|grep "[AT|AC|AG|AA|CT|CC|CA|CG|GT|GC|GA|GG|TT|TC|TA|TG]"`
I tried to do like this but failed
I want to get the substring after the last digit and
result should be
ATCTCTAGCAGTGGCGCCCGAACAGGGCACGCGAA
Thanks so much for help
Anusha
Comment