I have 4 files in my current directory: ‘#cos#’, ab.txt, cos~, file.txt. I want to delete all files with the word “cos” in them, which just also happen to be the only words with the letters ‘c’, ‘o’, and ‘s’ in them. I’ve set up the following:
echo * | grep -E '[cos]' | <idk what to put here>
in the , what should I put so as to delete all the files that the command is fed?