var=abcdide
sed:sed -n "/$var/p" // awk: awk '/'"$var"'/'spa
num=2orm
sed: sed -n "${n}p" //awk: awk 'NR=='"$var"''it