I had a "file.txt" with this string and to show the special characters and then replace
my file.txt https://drive.google.com/file/d/1pTh4rxdlmA3Qq0aVwF5jCTK3StqXrQeJ/view?usp=sharing
12,IBA�EZ JUAN,2006,00030,NUEVO
the character � I know is a "Ñ"
I want this
12,IBAÑEZ JUAN,2006,00030,NUEVO
i have tried
tr '\0xd1' 'Ñ' < file.txt > file_2.txt
my xxd is
$ hexdump -C file.txt
00000000 31 32 2c 49 42 41 ef bf bd 45 5a 20 4a 55 41 4e |12,IBA...EZ JUAN|
00000010 2c 32 30 30 36 2c 30 30 30 33 30 2c 4e 55 45 56 |,2006,00030,NUEV|
00000020 4f 2c 00 2c 20 20 20 20 20 20 20 20 20 20 2c 4e |O,., ,N|
00000030 4f 2c 00 2c 30 30 36 2c 50 2c 37 2e 30 30 30 2c |O,.,006,P,7.000,|
00000040 2e 30 30 30 2c 31 32 2e 37 34 2c 2e 30 30 30 2c |.000,12.74,.000,|
00000050 2d 2c 32 30 30 36 2d 30 36 2d 33 30 |-,2006-06-30|
0000005c