I was wondering how I could grep all the characters that don’t fit a set of characters you want to give it.
For example, say I have a file that has the following text
XXXXX0000000HelloXXXXXX
MyXXXName0000Is00000000
XXXXXJamesXXX0X0X0X0XXX
I want it to print out “HelloMyNameIsJames” or those characters in some other fashion (if it comes out as one character per line, I would be fine with that).
Any help would be greatly appreciated!
Raymosrunerx
Output:
To remove line ends too:
Ouput
(no trailing line end)