I have several .mkv files in eng.md that are listed by codes
$ grep -i 'mkv' eng.md ./Volumes/Transcend/Downloads/The.Adventure.of.English.Ep4.mkv ./Volumes/Transcend/Downloads/The.Adventure.of.English.Ep5.mkv ./Volumes/Transcend/Downloads/The.Adventure.of.English.Ep6.mkv ./Volumes/Transcend/Downloads/The.Adventure.of.English.Ep7.mkv ./Volumes/Transcend/Downloads/._The.Adventure.of.English.Ep4.mkv ./Volumes/Transcend/Downloads/The.Adventure.of.English.Ep8.mkv ./Volumes/Transcend/Downloads/._The.Adventure.of.English.Ep8.mkv ./Volumes/Transcend/Downloads/._The.Adventure.of.English.Ep5.mkv ./Volumes/Transcend/Downloads/._The.Adventure.of.English.Ep6.mkv
I decided to delete mkv files using pipeline methods and try
$ rm < grep -i 'mkv' eng.md -bash: grep: No such file or directory
Try alternatively
$ grep -i 'mkv' eng.md | rm usage: rm [-f | -i] [-dPRrvW] file ... unlink file grep: eng.md: No such file or directory
How to solve such a problem?
user9062604
source share