[OT] sed question
    Parv 
    parv at pair.com
       
    Mon Mar 15 19:41:17 PST 2004
    
    
  
in message <20040314164347.X35552 at wonkity.com>,
wrote Warren Block thusly...
>
> ...sed on other systems does handle \n and other literals in
> substitutions.  It's annoying enough that I just use Perl instead.
> 
> perl -pe 's/ /\n/g' my_test_text_document.txt
> 
> which actually would be better as
> 
> perl -pe 's/\s./\n/g' my_test_text_document.txt
                ^
                ^
Why do you have '.' after '\s'?  Did you mean '+' instead?
  - Parv
-- 
    
    
More information about the freebsd-questions
mailing list