0

I have a file with several paths to other files.

/root/Desktop/test1/test2/f1
/root/Desktop/test1/test2/f2

I need to execute a command from the terminal to delete f1 and f2 by importing their paths from that file.

Something like "rm code"

code = line 1 of the file text

Is there a way to do so ?

Med Sah
  • 11
  • 3

1 Answers1

-1
rm root/Desktop/test1/test2/f*

should do if I understood your question.

S_Rollan
  • 142
  • 10
  • I need to import that line automatically from the file which contains that path and not paste it manually. – Med Sah May 09 '20 at 22:41