I need some quick GREP advice. I'm working with a pipe delimited data file in this format: 114|20090826|00:00|N|1800|8005082|6719954|TVPG|L||CC|Stereo|N|Color||N| N|N|4:3 Fullscreen|N||||Y The 6th and 7th items in the each row of data (|8005082|6719954|, from the example) are references to data in other files. So what I need is a grep command that will give me 2 lists, one containing the 6th number from each row and one containing the 7th. The lists could be pipe, comma, tab or return delimited I'm fairly sure this can be done via GREP, but I don't know where to start. Any suggestions?