Linux/SSH 命令删除在文件中找到的每个文件路径

Pao*_*ino 4 linux shell

我有一个完整的文件路径相对于它自己的路径:

./Talent/152/Resume/a file name.pdf
./Talent/153/Resume/some file name.pdf
./Talent/154/Resume/yet another file name.pdf
... and so on ...
Run Code Online (Sandbox Code Playgroud)

遍历此文件中的每一行并将其删除的适当 shell 命令是什么?

Ign*_*ams 5

xargs -d '\n' rm < listoffiles.txt
Run Code Online (Sandbox Code Playgroud)