sed deletion help
Hello all..
plz help me.
I have a doubt regarding deletion usind sed. We can use following cammand to delete lines between 5 and 10 from filename.txt.
sed '5,10d' filename.txt
I have two variable $startline and $endline. How do use sed command with these variables? when i use
sed '$startline,endlined filename.txt
i am getting errors.
I know this is a basic syntax error, but plz help me to solve this.
|