[Eclug] help w/sed expression???

  • Previous message: [Eclug] help w/sed expression???
  • Next message: [Eclug] help w/sed expression???
  • David S. Madole david at madole.net
    Wed Aug 22 12:30:00 EDT 2007

     

    >From R. Mariotti on Wednesday, August 22, 2007 10:51 AM
    
    > I plan on filtering it with sed to search for the \f\n and
    > replace it with just a \f and send it off.
    >
    > my sed line look like:    s/\f\n/\n/g
    >
    > Any ideas what I need to change to make it work???
    
    I'm confused about the question, the text above makes it sound like you are trying to convert \f\n to \f but the sed example makes it look like you are trying to convert \f\n to \n.
    
    If it's the latter, then the problem is that sed doesn't see the \n characters, they are implied at the end of each line. So just use:
    
    s/\f$//
    
    Instead. The $ matches the end of the line.
    
    David
    
    
    

     

     

    More information about the ECLUG mailing list