Bash, using variable in sed
This is the command I'm trying to use..
sed -n '1p' filename
What I am trying to do is have "1" be a variable that will have a counter on it that gets incremented in a while loop.. The part I'm trying to figure out is how to use a variable inside of sed.
I tried this, and a few variations, but its not working..
sed -n '/$VARIABLE/p' filename