I have text files in which some lines includes emojis or other non Ascii characters, like the list in this screenshot:
I need a way to remove the whole lines containing an emoji or more. Even the lines containing non Ascii characters would be removed but I am for the emojis in this approach.
I have seen and tried the answers on questions like this:
- https://stackoverflow.com/questions/58421709/how-do-i-find-and-remove-emojis-in-a-text-file
- https://stackoverflow.com/questions/52266347/grep-for-emojis-in-linux
- https://stackoverflow.com/questions/58421709/how-do-i-find-and-remove-emojis-in-a-text-file
- https://stackoverflow.com/questions/2899423/filtering-out-emoticons-using-sed
- https://stackoverflow.com/questions/52266347/grep-for-emojis-in-linux
But they provide answers on how to remove the emojis, not the whole line containing emojis
Any help to grep, sed, awk or other bash based command is appreciated but a direction on how to do this with php, python, perl or anything else may also work.
