AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

sed: Function cannot be parsed

  • 1.  sed: Function cannot be parsed

    Posted Wed August 05, 2009 04:31 AM

    Originally posted by: SystemAdmin


    hi,

    i've got a problem with the sed version on aix 5.3. i want to replace something in a certain line.
    for example i want to replace all "yes" in line 1 with "no" in file "test". with gnu sed it works with sed "2{s/yes:/no/g}" test.
    if i run this command on aix sed i get "sed: Function 2{s/yes:/no/g} cannot be parsed."

    anyone have got a solution for that without installing gnu sed?

    thx in advance


  • 2.  Re: sed: Function cannot be parsed

    Posted Wed August 05, 2009 06:33 AM

    Originally posted by: tony.evans


    
    sed 
    "1s/yes/no/g" test
    


    Unless I'm missing something?