AIX

AIX

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


#Power
#Power
 View Only

sed: 0602-404 Function cannot be parsed

  • 1.  sed: 0602-404 Function cannot be parsed

    Posted Tue March 20, 2012 01:33 AM

    Originally posted by: jerryleo


    I'm on a AIX 5.3 box, I'd like to replace a line with newone if a pattern matches by using sed,

    
    sed -e 
    "/export  INITIAL_DATE=*/ c\export  INITIAL_DATE=${INIT_DATE}" \ -e 
    "/export    FINAL_DATE=*/ c\export    FINAL_DATE=${END_DATE}" \ get_fnl.ksh > get_fnl.ksh.edit
    


    it always complains sed: 0602-404 Function /export INITIAL_DATE=/ c\export INITIAL_DATE=2009031800 cannot be parsed.

    But this works fine on Linux box.

    How should I do it on AIX?

    Thanks
    #AIX-Forum