I have a list that has for some reason got some non alphanumeric characters appended to the end.
I would have thought it would be a simple case of running :
sed 's/[^A-Za-z0-9]$//'
To replace these trailing characters. Unfortunatley the above seems to be having zero effect.
For example, if I hex dump the file, I will see lines such as :
63 6f 6d be 0a
Obviously, the culprit here is the hex character
be
But running the following pipe
.... | sed 's/[^A-Za-z0-9]//' | hexdump -C
I still see "be" appearing !
*. Usesed 's/[^[:alnum:]]*$//'