Please help me in using sed. I have a file like below.
START=A
  xxxxx
  xxxxx
END
START=A
  xxxxx
  xxxxx
END
START=A
  xxxxx
  xxxxx
END
START=B
  xxxxx
  xxxxx
END
START=A
  xxxxx
  xxxxx
END
START=C
  xxxxx
  xxxxx
END
START=A
  xxxxx
  xxxxx
END
START=D
  xxxxx
  xxxxx
END
I want to get the text between START=A, END. I used the below query.
sed '/^START=A/, / ^END/!d' input_file
The problem here is , I am getting
START=A
  xxxxx
  xxxxx
END
START=D
  xxxxx
  xxxxx
END
instead of
START=A
  xxxxx
  xxxxx
END
Sed finds greedily.
Please help me in resolvng this.
Thanks in advance.
Can I use AWK for achieving above?
 
     
     
     
    