sed deletion doubt
Asked by
Wahan
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,
i am getting errors.
I know this is a basic syntax error, but plz help me to solve this.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu sed Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Wahan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.