I am attempting to use sed
to delete a line, read from user input, from a file whose name is stored in a variable. Right now all sed
does is print the line and nothing else.
This is a code snippet of the command I am using:
FILE="/home/devosion/scripts/files/todo.db"
read DELETELINE
sed -e "$DELETELINE"'d' "$FILE"
Is there something I am missing here?
Edit: Switching out the -e
option with -i
fixed my woes!