[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] (sikkert) simpelt sed-problem



On Tue, Nov 21, 2000 at 19:44:55 +0100, sslug@sslug wrote:

> sed -e s/\n/\<br\>/g test.txt 
> 
> men det erstatter n'er med <br>. Er der nogen der kan hjælpe??


Se "man sed", øjensynlig er der noget bøvl her :(

Ellers brug awk:

awk ' {print ; print "<br>" }' /tmp/n.txt

eller

awk ' { printf("%s<br>",$0); }' /tmp/n.txt

I sidste tilfælde får du en MEGET lang linie i din fil og ikke andet.
så måske den første er bedre eller:

awk ' { printf("%s<br>\n",$0); }' /tmp/n.txt


-- 
Frank Damgaard | http://home3.inet.tele.dk/frda



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:19 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *