BASH -- sed -- variable

Hi, I'm new at bash scripting -- can anyone here help me about the sed command?

I need to be able to edit and or delete a text from an outside file ie file.txt -- I'm passing a variable and not a string

I was thinking of something like

echo -n "What do you want to edit?: "
read edit
sed -e '$edit' file.txt

??? thanks in advance!!! :o

I do have a suggestion for you, dont take it offensive,please use goggle for getting a generic idea about things and ask in forums for specific things.if the command or tool belongs to linux or gnu it will be available in gnu docs or how to linux etc.

people over here would be ready to help you.
->read the rules and faq(it will be really effective in improving you technically and personally)
->try to google if you dont have any idea about the subject
->then search in forum
->then ask question

this time i would give a link for you question
Gentoo Linux Documentation -- Sed by example, Part 1

Best Regards,
Rakesh UV