[CentOS] text to html
John Doe
jdmls at yahoo.comMon Jul 5 15:13:39 UTC 2010
- Previous message: [CentOS] text to html
- Next message: [CentOS] Help: Please help me size my server requirements
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Benjamin Franz <jfranz at freerun.com> >>> 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> >Both your solution and Jozsi's can produce severe security problems While this is correct, security was not a pre-requisite... but "one liner" was... ^_^ I leave it as an exercise to remove html code (sed -e ’s/<[^>]*>//g')... JD
- Previous message: [CentOS] text to html
- Next message: [CentOS] Help: Please help me size my server requirements
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list