I am searching for certain files with certain extensions using find command. I would like to use grep command at the end to ignore certain files.
My uncomplete command is:
find . -type f \( -name "*.txt" -or -name "*.html" -or -name "*.css" -or -name "*.js" -or -name "*.yml" \) | grep .. Let's say I would like to ignore 2 files: cards.js and radios-and-checkboxes.css
How can I implement that with grep command? I am aware that there are ways without using a grep command but I would like to know how can I do it using grep.
I have looked for different solutions but most of them mentions excluding words or file extensions or using just find command to do a similar task.