Re: [CentOS] text to html

2010-07-05 Thread John Doe
From: Benjamin Franz >>> 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 "\n> size=4>"$1""; } split($2, a, /\./); t=a[1]; >> print""t""; } ' >Both your solution and Jozsi's can pro

Re: [CentOS] text to html

2010-07-05 Thread Benjamin Franz
On 07/05/2010 03:20 AM, John Doe wrote: > From: Jozsi Avadkan > >> 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/

Re: [CentOS] text to html

2010-07-05 Thread Sudev Barar
On 5 July 2010 15:50, John Doe wrote: > From: Jozsi Avadkan >> 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

Re: [CentOS] text to html

2010-07-05 Thread John Doe
From: Jozsi Avadkan > 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 "\n"$1""; } split($2, a, /\./); t

Re: [CentOS] text to html

2010-07-03 Thread Jozsi Avadkan
my own solution: http://pastebin.com/raw.php?i=kqQXCpD5 > 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

Re: [CentOS] text to html

2010-07-03 Thread Benjamin Franz
On 07/03/2010 02:07 AM, Jozsi Avadkan 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

Re: [CentOS] text to html

2010-07-03 Thread Emmanuel Noobadmin
post script: it's not often I actually run into something I can help with on this list. So just let me know if you need help writing that php script. Shouldn't take more than 15 minutes as long as you don't require design documentations ;) ___ CentOS mail

Re: [CentOS] text to html

2010-07-03 Thread Emmanuel Noobadmin
On 7/3/10, Jozsi Avadkan 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. Def

Re: [CentOS] text to html

2010-07-03 Thread Jussi Hirvi
Use php or some other html-friendly scripting language... Should be easy. - Jussi On 3.7.2010 12.07, Jozsi Avadkan 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? >

[CentOS] text to html

2010-07-03 Thread Jozsi Avadkan
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. ___ CentOS m