I have the collection of text files containing/not the phrase (B core file).
Then I tried this:
sudo find / -type f -name core | xargs file | grep 'B core file' | sed 's/:ELF.*//g' | xargs rm -f
To remove specific files with the phrase "B core file".
But that command won't work.
I'm hoping for the solution. Thank you very much.