bash - pull out variables from a | delimited string
I have a string such as:
PDFJ37455JSJDF| 156|BACON AND EGGS TRANSIT |2005-11-01 02:20:00| 7300|4051 | 0
I would like to put each value into a separate variable (or array) to be used later on.
Food=BACON AND EGGS TRANSIT
I can't figure out a nice way to do this (though I do have some crappy ways). Any help would be appreciated.
Last edited by elinenbe; 02-15-2008 at 01:36 PM.