[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: [TEKNIK] sed-regexp bøvl med at gentage søg-erstat i en linje



God dag Kenneth.

Torsdag 12 april 2007 16:26 kvad Kenneth:
>[Hvordan får jeg lavet følgende om til en rigtig /etc/group igen?]
>
> daemon:x:2:root,bin,daemon,cyrus,bacula sys:x:3:root,bin,adm
> adm:x:4:root,adm,daemon tty:x:5: disk:x:6:root lp:x:7:daemon,lp
> mem:x:8:

Hvad med:

sed 's/ /\
/g'

(Læg mærke til det hårde linjeskift)

Det ser jo ud til at alle linjeskiftene blot er blevet til mellemrum.

Hilsen Johnny :o)


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-05-01, 02:01 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] *