Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am using the 'search & replace' option of the 'sed' command and I am getting the error "unterminated `s' command" The command looks like sed 's/default=$ORIG_COUNT/default=$COUNT/' test where ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    10

    sed -- unterminated 's' command

    Hi,

    I am using the 'search & replace' option of the 'sed' command and I am getting the error "unterminated `s' command"

    The command looks like
    sed 's/default=$ORIG_COUNT/default=$COUNT/' test

    where I want to change the 'default' value in the 'test' file.

    Plz help!

  2. #2
    Just Joined!
    Join Date
    Oct 2009
    Posts
    10
    There was a minor mistake. The command should be

    sed 's/default='$ORIG_COUNT'/default='$COUNT'/' test

    It works fine!

Posting Permissions

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