var=abcd
sed:sed -n "/$var/p" // awk: awk '/'"$var"'/'
num=2
sed: sed -n "${n}p" //awk: awk 'NR=='"$var"''
转载于:https://blog.51cto.com/3635076/1909244
var=abcd
sed:sed -n "/$var/p" // awk: awk '/'"$var"'/'
num=2
sed: sed -n "${n}p" //awk: awk 'NR=='"$var"''
转载于:https://blog.51cto.com/3635076/1909244