Having a thousand of data files (same extension) in a directory, how to delete those which contain a specific parameter statement?
For example, if I wented to delete all files containing the line
Key = 0
could I do something like
grep -i "Key = 0" * | rm *
Asked by André Fonseca
(31 rep)
Aug 11, 2020, 07:11 PM
Last activity: Feb 16, 2025, 02:42 PM
Last activity: Feb 16, 2025, 02:42 PM