SyntaxFix
Write A Post
Hire A Developer
Questions
Use a parameter expansion. This is much more efficient than any kind of external command, cut (or grep) included.
cut
grep
data=foo,bar,baz,qux last=${data##*,}
See BashFAQ #100 for an introduction to native string manipulation in bash.