I am using variable in sed command to pickup lines between start and end lines using following command. But its giving me this error.Can someone please help me?
sed -n "${start_line},${total_lines}w test_alert1.log" alert_$ORACLE_SID.log
sh-2.05b$ START=1
sh-2.05b$ END=10
sh-2.05b$ sed -n -e "${START},${END}p" libvex.h
/*---------------------------------------------------------------*/
/*--- ---*/
/*--- This file (libvex.h) is ---*/
/*--- Copyright (C) OpenWorks LLP. All rights reserved. ---*/
/*--- ---*/
/*---------------------------------------------------------------*/
/*
This file is part of LibVEX, a library for dynamic binary
sh-2.05b$