Need to split an input string
I have to split an input string on a common delimiter. I have tried using cut but the problem I run into is that it wants a file. I need to cut the data stored in a variable based upon a certain delimiter.
cut -d ":" -f 3 "$DATA" but it just keeps looking for a file not taking the string is there another program like cut that I can use or a way to trick cut