Hey all, after losing my job and re-inrolling in university (long story) I'm currently catching up to a class in Unix programming. I'm stumped by a few commands though and I thought there might be a helpful, bored, willing soul here on TPU First problem: I get a file with mortality rates per country, per year. I need to join every line per country. I have 2 lines per country. :16,17j works obviously, but that way I have to manually do every country. Only 6 countries in list, so not really much work, but I doubt this is what the prof intended. Second problem: Once they are joined, I have to re-order the contents. Belgium 06 61,0 111,0 Belgium 00 68,0 130,0 should become Belgium 61,0(06)-68,0(00) 111,0(06)-130,0(00) for that I'm using, in vi: :16,$s/\([a-z]*\) \([0-9]*\) \([0-9]*\,[0-9]\) \([0-9]*\,[0-9]\) \([a-z]*\) \([0-9]*\) \([0-9]*\,[0-9]\) \([0-9]*\,[0-9]\)/\1 \3(\2)-\7(\6) \4(\2)-\8(\6) but that just gives me E486: patter not found error. As a regular expression, I'm pretty sure it's correct, but vi probably isn't capable of reading it as I want it to. Any resident editor specialist mind taking a swing at this?