Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    2

    Unanswered: substitute each occurences of the text <<break>> in a file with CR/LF using sed

    I'm trying to substitute each occurences of the text <<break>> in a file with CR/LF using sed.the syntax I used is similar to what is shown below.

    #sed "s/<<break>>/^M//g" breakfile

    but this does not do what I want instead it replaces the occurances of <<break>> with ^M.

    Can someone help me in solving this out.

    Thanks in advance

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool



    Replace the ^M with ctrl-v, ctrl-m

    That is: press the ctrl key and type vm

    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Aug 2006
    Posts
    2
    Thanks a lot ,that works fine

    Tlbettip

  4. #4
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool


    Great! -- glad to help.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •