the following sed command works in terminal but when I wanted to store the output into a variable in a script, it prompts me "sed: -e expression #1, char 27: unterminated address regex" meesage. Not sure what is this...
Input file example:
orange
abc
def
apple
asd
edf
sed command to get keyword until brank line, this is working in terminal:
sed -n '/orange/,/^$/p' temp_stage.txt
Stored into a variable with the exact command. Not working.
my $waha = `sed -n '/orange/,/^$/p' temp_stage.txt`;