[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



<sslug@sslug> writes:

> Jeg sidder og fedter med at lave lave et script som kalder sed for at
> erstatte alle "[linjeskift]" med "<br>[linjeskift]" - tydeligvis for at
> gøre en rå text brugbar i html. Men jeg kan ikke få sed til at fange
> newline'ene, mit bedste bud er
> 
> sed -e s/\n/\<br\>/g test.txt 
> 
> men det erstatter n'er med <br>. Er der nogen der kan hjælpe??
> -- 
> Atte André Jensen

Prøv med

sed "s/$/<br>/" test.txt

mvh
Peter Stubbe


 
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] *