Hi all,
I am attempting to remove a random line in a file. I am thinking that sed should do it something like this:
cat access | sed '/$choice/d' > access.new
Where $choice is a variable filled in by the user, but alas, it does not work.
Thanx in advance!
DT In order to prevent possible injury to yourself, or your computer, and to ensure readability, please do not smoke, eat, drink, spindle, bend, fold, staple, or mutilate this message.
I am attempting to remove a random line in a file. I am thinking that sed should do it something like this:
cat access | sed '/$choice/d' > access.new
Where $choice is a variable filled in by the user, but alas, it does not work.
Thanx in advance!
DT In order to prevent possible injury to yourself, or your computer, and to ensure readability, please do not smoke, eat, drink, spindle, bend, fold, staple, or mutilate this message.