On 7/3/10, Jozsi Avadkan <jozsi.avadkan at gmail.com> wrote: > input: > http://pastebin.com/raw.php?i=MqPXZwc3 > > output: > http://pastebin.com/raw.php?i=8QCkp4yv > > it will be a long day.. :D > > could someone please help with it? > > i have to make a "one liner" that get's the input, and gives the > mentioned output. Definitely looks like a job for a script and personally I'll go with PHP due to familiarity. read line by line, explode the string on /, then section off based on the first token.