这是我的ls命令,它显示了我当前目录中的文件列表:
rper: ls -l
$commandoutput[0]
file.txt
Run Code Online (Sandbox Code Playgroud)
我试图$commandoutput[0]通过使用删除行rm -rf $commandoutput[0],但它显示以下错误。我怎样才能删除它?
rper: rm -rd $commandoutput[0]
commandoutput: Undefined variable.
Run Code Online (Sandbox Code Playgroud)