On Sat, Jul 3, 2010 at 5:07 AM, Jozsi Avadkan <jozsi.avadkan(a)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.
It's a rather simple bash script, but not a one-liner unless you don't
count semicolons..
In p-code:
OLD_FOO=DUMMY
for each line in the input file
FOO=dirname
BAR=basename
IF FOO != OLD_FOO print a header
print HREF line
OLD_FOO=foo
endfor