shell读取文件的某一行并赋值给一个变量

[list=1]
[]currentusername=sed -n '/username=/'p 1.txt | sed 's/username=//'
[
]echo $currentusername
[/list]
[list=1]
[]num=1
[
]sed -n “${num}p” urfile
[/list]