From: Jozsi Avadkan <jozsi.avad...@gmail.com>
> input: http://pastebin.com/raw.php?i=MqPXZwc3
> output: http://pastebin.com/raw.php?i=8QCkp4yv
> i have to make a "one liner" that get's the input, 
> and gives the mentioned output.

Here's my one line:
awk -F/ ' { if (p != $1) { p=$1; print "<br>\n<br><font 
size=4>"$1"</font><br>"; } split($2, a, /\./); t=a[1]; print "<a 
href=\""$0"\">"t"</a>"; } ' <MYFILE>

JD


      
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to