I need to read up until a delimiter and exclude the first character and take the value and put it into a variable. The first field in the line can be varying length which is why I can't use a standard cut or other methods I am familiar with. How do I read up until the "|" delimiter and exclude the first character?
T1000|||||||||||||||
I need a variable to contain the 1000 which would exclude the first character of "T". Also the value will not always be a static 4 length so need it to read dynamically.