Answer the question
In order to leave comments, you need to log in
How to redirect rm to read and delete files from a file?
Good afternoon.
There are ne number of files in the directory, in the same directory there is a file (a), which contains part of the name of these files.
I made bash, which is supposed to read the file and delete on it
#!/bin/bash
cat a.txt | rm -i $a.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question